I am trying to copy a template and paste it into the current workbook. But the code is erroring out. I get a run time error 1004.
Sub templateToBBU()
'OPEN TEMPLATE
Application.AskToUpdateLinks = False
Application.DisplayAlerts = False
Dim sPath As String, sFile As String
Dim wb As Workbook
sPath = "C:\Users\user123\Desktop\"
sFile = sPath & "BBU_CMD_TEMPLATE.xlsx"
Set wb = Workbooks.Open(sFile)
'COPY TEMPLATE PASTE IN BBU DOC
wb.Sheets("TEMPLATE").Copy
After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
End Sub
Thanks all,