Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check for a change in a cell

Status
Not open for further replies.

hsviljoen

Programmer
May 26, 2004
73
ZA
Please help with this - I need to check if a value in a cell changed(if the value changes).

Ive used this code:
If Intersect(Target, Range("H28")) Is Nothing Then
Exit Sub
Else
MsgBox "Value changed!"
End If

but this fires even though the value stayed the same...

Any help will be much appreciated
 
Use a static variable to hold the previous value.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top