Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
SheetCalculate Event
Hi all,
The Macro1 below was not evoke upon the calculation of active worksheet. I put these codes under ThisWorkBook but saved as addin (.xla) file. The auto-filter was set on the newly created worksheet. Private Sub Workbook_SheetCalculate(ByVal ob As Objects) If ob.AutoFilterMode Then Macro1 End Sub Should these event code must be placed under ThisWorkBook of newly created worksheet in order to call Macro1? Thanks in advance! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
SheetCalculate Event
You need to catch application level events. Chekc out this link...
http://www.cpearson.com/excel/AppEvent.aspx -- HTH... Jim Thomlinson "pwz" wrote: Hi all, The Macro1 below was not evoke upon the calculation of active worksheet. I put these codes under ThisWorkBook but saved as addin (.xla) file. The auto-filter was set on the newly created worksheet. Private Sub Workbook_SheetCalculate(ByVal ob As Objects) If ob.AutoFilterMode Then Macro1 End Sub Should these event code must be placed under ThisWorkBook of newly created worksheet in order to call Macro1? Thanks in advance! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
SheetCalculate Event
Dear Jim,
Very appreciate your information! I have resolved the problem now. "Jim Thomlinson" wrote in message ... You need to catch application level events. Chekc out this link... http://www.cpearson.com/excel/AppEvent.aspx -- HTH... Jim Thomlinson "pwz" wrote: Hi all, The Macro1 below was not evoke upon the calculation of active worksheet. I put these codes under ThisWorkBook but saved as addin (.xla) file. The auto-filter was set on the newly created worksheet. Private Sub Workbook_SheetCalculate(ByVal ob As Objects) If ob.AutoFilterMode Then Macro1 End Sub Should these event code must be placed under ThisWorkBook of newly created worksheet in order to call Macro1? Thanks in advance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
apply cell change event to single column - WorksheetChange Event | Excel Programming | |||
Click event on menu item is lost after first time firing of the event | Excel Programming | |||
SheetCalculate (F9) does not reach the excel-addin | Excel Programming | |||
Problem with SheetCalculate Event | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |