Forum Discussion
Shelbie1288
Oct 26, 2020Copper Contributor
Save Previous Cell Value Of A Changed Cell In Excel
I am trying to save the values of one column (G) to another (D) once I update it to a new value. I have the code correct, however the cell I want to save contains a formula and it is uploading th...
mtarler
Dec 31, 2020Silver Contributor
dylanc09 sry, i thought you were going a different route.
You should be able to change the following lines in that code:
Next J
Set xDCell = Cells(xCell.Row, xCol)
xDCell.Value = ""
xDCell.Value = xDic.Items(I)
Nextto this:
Next J
Set xDCell = Cells(xCell.Row, xCol)
xDCell.Value = xDCell.Value + xDic.Items(I)
Nextto make it do a running total.