stuartpurdie
New Member
- Joined
- Apr 1, 2004
- Messages
- 8
I'm trying to set up a toolbar button to paste formulas only. I want to be able to copy a cell, select a destination and then hit the button to paste the formula.
I edited a recorded macro to leave: -
Sub mcrPasteFormulas()
'
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= False, Transpose:=False
'
End Sub
When I copy the cell, select the destination then run the macro I get a "Runtime error '1004': PasteSpecial method of Range class failed".
Can anyone tell me what's going wrong?