I have 2 workbooks "Template" and "Target".
The macro will run from Target & should open "Template," copy sheet "MasterList" and paste it before the "Change Tracking" sheet in the "Target" workbook.
It's important to note that the name of the Target workbook will vary by project. So I can't specifically call it by name here.
Based on other posts, I've tried the following:
Workbooks.Open ("C:\Template.xlsx")
Workbooks("C:\Template.xlsx").Sheets("MasterList").Copy Before:=Workbooks(ThisWorkbook).Sheets("Change Tracking")
Unfortunately, I keep getting errors on this second line, no matter what I try. Any suggestions?
The macro will run from Target & should open "Template," copy sheet "MasterList" and paste it before the "Change Tracking" sheet in the "Target" workbook.
It's important to note that the name of the Target workbook will vary by project. So I can't specifically call it by name here.
Based on other posts, I've tried the following:
Workbooks.Open ("C:\Template.xlsx")
Workbooks("C:\Template.xlsx").Sheets("MasterList").Copy Before:=Workbooks(ThisWorkbook).Sheets("Change Tracking")
Unfortunately, I keep getting errors on this second line, no matter what I try. Any suggestions?