Hi
I want a message box to popup when cell J5 is >= cell J6 and I am using the following:
The above code is working when J5 is manually updated, however J6 is referencing another cell and when the other cell is updated the macro is not firing and the message box is not popping up.
Thanks
A-Train
I want a message box to popup when cell J5 is >= cell J6 and I am using the following:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$J$5" Then Exit Sub
If [J5].Value >= [J6].Value Then MsgBox "Limit Reached"
End Sub
The above code is working when J5 is manually updated, however J6 is referencing another cell and when the other cell is updated the macro is not firing and the message box is not popping up.
Thanks
A-Train