【发布时间】:2019-10-03 11:14:15
【问题描述】:
我希望能够使用 VBA 将粘贴对象分配的宏复制到另一个工作表。
以下代码将一张工作表的格式复制并粘贴到另一张工作表,但不复制工作表中的宏。
WshTrg.Cells.PasteSpecial xlPasteFormats
WshTrg.Cells.PasteSpecial xlPasteColumnWidths
WshTrg.Cells.PasteSpecial xlPasteFormulasAndNumberFormats
WshTrg.Cells.PasteSpecial xlPasteAll
有没有一种方法可以粘贴对象而不是格式从一张纸粘贴到另一张纸上
【问题讨论】: