I want to write a one-line macro to "paste special." It's supposed to paste the Excel clipboard into whatever cell is currently selected.
Here it is.
Sub macro1()
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
It fails every time: "PasteSpecial method of range class failed."
Is this because I didn't use a ______.copy statement in the code just before this? The data WAS ALREADY IN the clipboard. How do I access that data and just paste it?
Thanks so much,
-Phil
Here it is.
Sub macro1()
Selection.PasteSpecial Paste:=xlPasteValues
End Sub
It fails every time: "PasteSpecial method of range class failed."
Is this because I didn't use a ______.copy statement in the code just before this? The data WAS ALREADY IN the clipboard. How do I access that data and just paste it?
Thanks so much,
-Phil