Anyone know how to modify this macro so that B20 shows its original value. For example, if A1=1000 and B20=500, I want to see the answer as 1,500 but if I click on the cell I want to see =1000+500?
Code:
Sub MyFormulaAdder()
Dim d As Double
d = Range("A1").Value
Range("A1").Formula = "=" & d & "+B20"
End Sub
Code:
Sub MyFormulaAdder()
Dim d As Double
d = Range("A1").Value
Range("A1").Formula = "=" & d & "+B20"
End Sub