Hi Wyman,
Firstly thanks, so far so good but have an issue when trying to run.
Problem:
- I had to define a varible for fileB so did that.
- Now have error "Compile Error: Method or Data number not found"
It relates to this in code: fileB.Sheets("Sheet4").Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
It looks like fileB.Sheets is the problem.
fileB. options don't contain Sheets in it, not sure how to correct.
- Can you please test/correct, appreciated.
Current Code:
Option Explicit
Public Sub SPCXS()
Dim fileB As Workbooks
Application.ScreenUpdating = False
Set fileB = Workbooks.Open("C:\Users\Nick\Documents\Work\zOther\SPC Master.xlsx")
fileB.Sheets("Sheet4").Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
fileB.Close
Application.ScreenUpdating = True
End Sub