S
Sean
I have a very simple piece of code (extract below), that copies the
contents from SheetA to SheetB, but I am getting a debug of "Copy
method of Range Class failed" on the line - Slection.Copy below
I can't see how my code could be any simpler and hence why the error
Hope someone can assist
Sub Report()
Application.ScreenUpdating = False
ActiveWindow.DisplayWorkbookTabs = False
Sheets("SheetA").Activate
ActiveSheet.Unprotect Password:="123"
Range("A1").Select
Sheets("SheetB").Visible = True
Sheets("SheetB").Activate
ActiveSheet.Unprotect Password:="123"
Sheets("SheetA").Activate
Cells.Select
Selection.Copy
contents from SheetA to SheetB, but I am getting a debug of "Copy
method of Range Class failed" on the line - Slection.Copy below
I can't see how my code could be any simpler and hence why the error
Hope someone can assist
Sub Report()
Application.ScreenUpdating = False
ActiveWindow.DisplayWorkbookTabs = False
Sheets("SheetA").Activate
ActiveSheet.Unprotect Password:="123"
Range("A1").Select
Sheets("SheetB").Visible = True
Sheets("SheetB").Activate
ActiveSheet.Unprotect Password:="123"
Sheets("SheetA").Activate
Cells.Select
Selection.Copy