Merge Sheet from one workbook to another - assistance with existing code
I aquired this code to pull in (Sheet1) from another workbook and merge it into my master workbook. Its working but..
The problem is when the tab is pulled in from WB2 it needs to be placed infront of Sheet1, its currently coming in and going to the last tab. How do you bring it in so it is 1st tab? also once it has been pulled into the master file I need to protect this sheet before saving and exit.
Set objExcel = CreateObject("Excel.Application")
objExcel.DisplayAlerts = False
Set objWB1 = objExcel.Workbooks.Open("c:\SOURCE_TAB_Benefits.xlsm")
Set objWB2 = objExcel.Workbooks.Open("c:\BENEFITS_Run.xlsx")
For Each ws In objWB1.Sheets
.DisplayAlerts = True
Set objExcel = Nothing
I have recommended this question be closed as Shums (42046951)
If you feel this question should be closed differently, post an objection and a moderator will read all objections and then close it as they feel fit. If no one objects, this question will be closed automatically the way described above.