Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试Workbook使用vba将一张纸从一张复制到另一张。我正在使用以下代码:
Workbook
ThisWorkbook.Sheets("Invoice").Cells.Copy
当我运行它时,只有单元格被复制并且徽标没有被复制。如何更改它以复制徽标?
只需复制整个工作表而不是Cells
Cells
像这样从包含代码复制到Book1Workbook的第一页
ThisWorkbook.Sheets("Invoice").Copy Workbooks("Book1").Sheets(1)
或者从ActiveWorkbook
ActiveWorkbook
ActiveWorkbook.Sheets("Invoice").Copy Workbooks("Book1").Sheets(1)