Im setting up a code that will copy the last sheet in another workbook and add it to the end of said workbook. However I do not want my code to open the workbook.
I have tried using the application.ScreenUpdating before and after my code, but it do not seem to work. I have also tried putting the screenupdating code at the beginning of the sub and at the end.
With otherwb
Application.ScreenUpdating = False
.Sheets(.Sheets.count).Copy After:=.Sheets(.Sheets.count)
Application.ScreenUpdating = True
End With
Am I using the Screenupdating code wrong or is there a reason why the workbook is still opening for me?