Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a "cell change" event?
Is it possible to run some code when the value of a specific cell changes?
Thanks in advance. Mark Smith SPX Air Gage Co. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a "cell change" event?
Thanks Chip. It worked.
Mark Smith SPX Air Gage Co. "Chip Pearson" wrote in message ... Mark, You can use the Worksheet_Change event procedure to run code when a cell is changed by the user or by VBA (but not as the result of a calculation). E.g., the following will display a message box when cell A1 is changed. Private Sub Worksheet_Change(ByVal Target As Range) If Not Application.Intersect(Target, Range("A1")) Is Nothing Then MsgBox "You changed A1." End If End Sub Put this code in the code module for the worksheet containing the cell you want to test. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Mark Smith" wrote in message ... Is it possible to run some code when the value of a specific cell changes? Thanks in advance. Mark Smith SPX Air Gage Co. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How do I change the column heading in Excel to display "A" "B" "C | New Users to Excel | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
=IF(D13="PAID","YES","NO") Can I change fonts colour | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |