Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the cell format doesn't change existing cell content Kate Excel Discussion (Misc queries) 2 January 14th 10 04:44 PM
Change Cell Alert Dave Excel Programming 2 January 8th 10 11:47 AM
Cell Change Alert GBExcel via OfficeKB.com Excel Programming 2 November 10th 09 11:22 PM
Change Cell Content George Excel Discussion (Misc queries) 2 March 16th 09 02:40 PM
how to track a change in a cell content S Excel Programming 1 November 19th 04 06:30 PM


All times are GMT +1. The time now is 04:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"