Hi,
I am trying to compare the cell value, old with the changed value. I am using the below code to get the new value but I was not able to get the previous value of the cell.
The new value is fetched to the variable z.
Can anyone help please.
I am trying to compare the cell value, old with the changed value. I am using the below code to get the new value but I was not able to get the previous value of the cell.
The new value is fetched to the variable z.
Can anyone help please.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
X = Target.Row
y = Target.Column
Z = Cells(X, y).Value