Hello,
I'm trying to copy two worksheets from one workbook to another. This seems to be fairly straight forward, but for some reason, I can't seem to accomplish this with a variable sheet name.
I have set one of the workbooks to "Report" and the other "Edit"
The "Edit" workbook is currently active and I'm looking to copy the "Lists" worksheet from "Edit" to "Report".
Sheets("Lists").Select
Sheets("Lists").Copy Before:=Report.Sheets("Summary")
Any idea where the break is in this code? Is it a simple Syntax error that I'm overlooking?
I'm trying to copy two worksheets from one workbook to another. This seems to be fairly straight forward, but for some reason, I can't seem to accomplish this with a variable sheet name.
I have set one of the workbooks to "Report" and the other "Edit"
The "Edit" workbook is currently active and I'm looking to copy the "Lists" worksheet from "Edit" to "Report".
Sheets("Lists").Select
Sheets("Lists").Copy Before:=Report.Sheets("Summary")
Any idea where the break is in this code? Is it a simple Syntax error that I'm overlooking?