Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mar 25, 9:06*am, Jacob Skaria
wrote: Worksheet_Calculate() event is fired when ever an existing cell formula is calculated or re-calculated or any cell values which affect the calculation changes. Please write this code under *Worksheet_Activate() event. Since your code is looking at changes to 1 column it is better to write the code in Worksheet_Change(ByVal Target As Range) event with a filter on the Column; Private Sub Worksheet_Change(ByVal Target As Range) 'If the code needs to be executed only for any changes in col 2 If Target.Column = 2 'Write your code here End If End Sub If this post helps click Yes --------------- Jacob Skaria Jacob, I changed things as you specified and it worked. Thanks for the explanation and the prompt response! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
worksheet_calculate | Excel Programming | |||
Worksheet_Calculate | Excel Programming | |||
worksheet_calculate | Excel Discussion (Misc queries) | |||
Worksheet_calculate() | Excel Programming | |||
worksheet_calculate **help** | Excel Programming |