Hi all
I'm using this code:
Sub PasteAsValue()
Selection.PasteSpecial Paste:=xlPasteFormulas
End Sub
to keep the formatting in worksheet.
It works as intented.
However if I for some reason need to cut (ctrl-x) in the worksheet and try to paste with ctrl-v it returns error 1004
I can use the mouse right click to paste or via excel menu, no problem, but not via shortcut?
I'm using this code:
Sub PasteAsValue()
Selection.PasteSpecial Paste:=xlPasteFormulas
End Sub
to keep the formatting in worksheet.
It works as intented.
However if I for some reason need to cut (ctrl-x) in the worksheet and try to paste with ctrl-v it returns error 1004
I can use the mouse right click to paste or via excel menu, no problem, but not via shortcut?