I always get this wrong! I don't know why. I am getting a runtime error 1004 for PasteSpecial method of Range class failed on the .pastespecial code line, why?
and of course, how do I fix it?
and of course, how do I fix it?
Code:
ActiveCell.FormulaR1C1 = "=RC[-1]-RC[-3]"
ActiveCell.Copy
Range("P5").End(xlDown).Select
ActiveCell = ActiveCell.Offset(0, 1).Select
Range(Selection, Selection.End(xlUp)).Select
Selection.PasteSpecial Paste:=xlPasteFormulas
Application.CutCopyMode = False
Last edited by a moderator: