Reputation: 219
I am trying to copy a sheet from one Workbook
to another using vba. I am using the following code:
ThisWorkbook.Sheets("Invoice").Cells.Copy
When I run it only the cells get copied and logo isn't getting copied. How to I change this to copy the logo also?
Upvotes: 1
Views: 100
Reputation: 55672
Simply copy the entire sheet rather than the Cells
Something like this to copy from the Workbook
containing the code to the first sheet of Book1
ThisWorkbook.Sheets("Invoice").Copy Workbooks("Book1").Sheets(1)
Or from the ActiveWorkbook
ActiveWorkbook.Sheets("Invoice").Copy Workbooks("Book1").Sheets(1)
Upvotes: 2