I am trying to set up a macro to add a value, say 10, to an existing cell that has a formula in it. I would like the cell to maintain the formula.
Here is what I've done so far:
Sub addvalue
'Keyboard Shortcut: Ctrl+Shift+A
ActiveCell.Formula = ActiveCell.Formula + 10
End Sub
This isn't working for me. It works when the cell is just a number, but not when the cell I am trying to adjust is a formula.
If the cell I'm trying to adjust contains =A1 + 4 and I run this macro, I'd like it to be =A1 + 14 after the macro runs.