I have a very basic question.
I've pasting clipboard content to a certain sheet (Sheet5) in cell A1 (document contains more sheets).
I'm been getting a lot of 1004 errors (paste method of worksheet class failed).
How can I paste clipboard content to a certain sheet and avoid this error? I want to open the document and paste the clipboard content without having to click on Sheet5.
I've pasting clipboard content to a certain sheet (Sheet5) in cell A1 (document contains more sheets).
Code:
Sub Copy()
ActiveSheet.Paste Destination:=Worksheets("Sheet5").Range("A1")
End Sub
I'm been getting a lot of 1004 errors (paste method of worksheet class failed).
How can I paste clipboard content to a certain sheet and avoid this error? I want to open the document and paste the clipboard content without having to click on Sheet5.