J
John
I have the following code that enters Debug at the line that says
"ActiveSheet.Paste". The target sheet i.e. E-Figures is not protected, can
anyone see any reason for this? It states in the dialogue box "Paste method
of worksheet class failed"
Thanks
Sub Generate_Reports()
Sheets("Figures").Select
ActiveSheet.Unprotect Password:="enter"
Cells.Select
Selection.Copy
Range("A1").Select
Sheets("E-Figures").Visible = True
Sheets("E-Figures").Select
ActiveSheet.Unprotect Password:="enter"
Sheets("E-Figures").Select
Range("A1").Select
ActiveSheet.Paste
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.Visible = False
Sheets("Home").Select
Range("A1").Select
Mail_Reports
End Sub
"ActiveSheet.Paste". The target sheet i.e. E-Figures is not protected, can
anyone see any reason for this? It states in the dialogue box "Paste method
of worksheet class failed"
Thanks
Sub Generate_Reports()
Sheets("Figures").Select
ActiveSheet.Unprotect Password:="enter"
Cells.Select
Selection.Copy
Range("A1").Select
Sheets("E-Figures").Visible = True
Sheets("E-Figures").Select
ActiveSheet.Unprotect Password:="enter"
Sheets("E-Figures").Select
Range("A1").Select
ActiveSheet.Paste
Cells.Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
Range("A1").Select
Application.CutCopyMode = False
ActiveWindow.SelectedSheets.Visible = False
Sheets("Home").Select
Range("A1").Select
Mail_Reports
End Sub