Basically I'm trying to change the value of a cell to the value calculated by its formula. So if I have cell A1 = 1 and cell A2 = 2, and if I then have cell A3 =sum("A1","A2"
, I want to be able change the value of A3 so that it equals only 3, not the formula.
I tried to assign the answer to a variable and paste it to another cell, but if i deleted either A1 or A2 or both, then the cell wouldnt be 3 anymore, and I want to be able to retain that answer
ActiveCell.FormulaR1C1 = "=sum("A1","A2"
"
Let i = ActiveCell.Value
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1"
.Select
ActiveCell.Value = i
The new cell has value 3, but once A1 or A3 is deleted then it doesnt work. Thanks
I tried to assign the answer to a variable and paste it to another cell, but if i deleted either A1 or A2 or both, then the cell wouldnt be 3 anymore, and I want to be able to retain that answer
ActiveCell.FormulaR1C1 = "=sum("A1","A2"
Let i = ActiveCell.Value
Selection.Copy
ActiveCell.Offset(1, 0).Range("A1"
ActiveCell.Value = i
The new cell has value 3, but once A1 or A3 is deleted then it doesnt work. Thanks