I have the simple code below. I would like to be able to run it from any cell in the sheet rather than just B7. I.E. run the same macro from E28 and return the result to E28
Is there an easy way to do this?
Sub Macro2()
Range("B7").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("B7").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Is there an easy way to do this?
Sub Macro2()
Range("B7").Select
ActiveCell.FormulaR1C1 = "=NOW()"
Range("B7").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
Last edited: