I want to copy multiple range and paste them to another worksheet. Is there a way to do this without having to create more than one variable. Below i created the variable copy1 which copies ranges in column A and C. I want to paste this to columns A and C in another worksheet. But i get the following error: "this command cannot be used on multiple selections.
Is this there a better solution.. I want to avoid creating more than one variable.
Sub Macro1()
Set copy1 = Worksheets("Sheet1").Range("A1:A13,C1:C13")
copy1.Copy Destination:=Worksheets("Sheet2").Range("A1,C1")
End Sub
Is this there a better solution.. I want to avoid creating more than one variable.
Sub Macro1()
Set copy1 = Worksheets("Sheet1").Range("A1:A13,C1:C13")
copy1.Copy Destination:=Worksheets("Sheet2").Range("A1,C1")
End Sub