Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change in cell content alert
I use ByVal to notify me of any change to column 5. However, the cells in the
column 5 contain a forumla and I want to be notified of a change in the content of the column (different outputs based on the formula) Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 5 Then MsgBox Target.Offset(0, -4).Value & " changed", vbInformation End If End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Change in cell content alert
Use the Calculate event. It runs whenever the worksheet is re-calculated.
You will need to use some static variables to "remember" the results of the previous calculation. -- Gary''s Student - gsnu200909 "PraveenVis" wrote: I use ByVal to notify me of any change to column 5. However, the cells in the column 5 contain a forumla and I want to be notified of a change in the content of the column (different outputs based on the formula) Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 5 Then MsgBox Target.Offset(0, -4).Value & " changed", vbInformation End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Changing the cell format doesn't change existing cell content | Excel Discussion (Misc queries) | |||
Change Cell Alert | Excel Programming | |||
Cell Change Alert | Excel Programming | |||
Change Cell Content | Excel Discussion (Misc queries) | |||
how to track a change in a cell content | Excel Programming |