John
Try :-
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Call YourMacro
End If
End Sub
Celia
You can try worksheet_calculate event if you are working with numbers,,,
It is fairly simple and you can get your answere from the help documentation of excel...
I suppose this will also run fast then worksheet change event because this event is only called when you do some calculations
still you cant do it with it write me a mail i will provide you code on this message board
nishith
Nishith
As far as I know, none of the event procedures make any discernible difference to Excel's performance and there is no discernible difference in speed between one procedure and another - is there?
The Worksheet_Change event occurs when the value of a cell is changed except if the change is the result of a calculation.
The Worksheet_Calculate event occurs only when the worksheet is calculated but not when there is a change other than by calculation.
What is the actual Worksheet_Calculate code you would suggest for Brian to use?
In a reply to Forcing a macro to run - Jamie 19:38:38 3/24/100, Ivan Moala suggested using Workbook_SheetChange. This would occur whenever cell A1 changed (by whatever means) with the following code :-
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Excel.Range)
Static OldVal
If Range("A1").Value <> OldVal Then
Call yourMacro
OldVal = Range("A1").Value
End If
End Sub
Celia
Nishith
As far as I know, none of the event procedures make any discernible difference to Excel's performance and there is no discernible difference in speed between one procedure and another - is there?
The Worksheet_Change event occurs when the value of a cell is changed except if the change is the result of a calculation.
The Worksheet_Calculate event occurs only when the worksheet is calculated but not when there is a change other than by calculation.
What is the actual Worksheet_Calculate code you would suggest for Brian to use?
In a reply to Forcing a macro to run - Jamie 19:38:38 3/24/100, Ivan Moala suggested using Workbook_SheetChange. This would occur whenever cell A1 changed (by whatever means) with the following code :-
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Excel.Range)
Static OldVal
If Range("A1").Value <> OldVal Then
Call yourMacro
OldVal = Range("A1").Value
End If
End Sub
Celia
PS. Sorry, I meant John - not Brian.