Hi,
I want to make a macro to just paste values for cells that have been copied manually by the user in another workbook.
However I get the 1004 error: "PasteSpecial method of range class failed"
Strangest thing, because it works in another Excel file I made, I copied the code from there.
I want to make a macro to just paste values for cells that have been copied manually by the user in another workbook.
Code:
Sub PasteValues()
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
End Sub
However I get the 1004 error: "PasteSpecial method of range class failed"
Strangest thing, because it works in another Excel file I made, I copied the code from there.