Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need an event procedure activate Application.Calculation = xlAutomatic
whenver the targeted sheets are selected. I have 10 worksheets in my workbook where the event procedure should only affect Sheet1 to Sheet6 Purpose: This is to ensure Application.Calculation = xlAutomatic is always activated even when my other procedures in Module1 exits pre-maturely as I disable calculation via Application.Calculation = xlManual at the beginning of each procedure within Module1 (for speed). So, if my codes in Module1 exits pre-maturely (due to poor debugging), atleast I have the event to reactivate Application.Calculation = xlAutomatic whenver the targeted sheets are selected. Also, pls tell me where should I place this event procedure. in Thisworkbook or where? Thanks in advance. -- Edmund (Using Excel 2000) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Edmund,
Each sheet has a _Activate & _Deactivate events you can respond to. Or ThisWorkbook has _SheetActivate if you want one central place for code. NickHK "Edmund" wrote in message ... I need an event procedure activate "Application.Calculation = xlAutomatic" whenver the targeted sheets are selected. I have 10 worksheets in my workbook where the event procedure should only affect Sheet1 to Sheet6 Purpose: This is to ensure "Application.Calculation = xlAutomatic" is always activated even when my other procedures in Module1 exits pre-maturely as I disable calculation via "Application.Calculation = xlManual" at the beginning of each procedure within Module1 (for speed). So, if my codes in Module1 exits pre-maturely (due to poor debugging), atleast I have the event to reactivate "Application.Calculation = xlAutomatic" whenver the targeted sheets are selected. Also, pls tell me where should I place this event procedure. in Thisworkbook or where? Thanks in advance. -- Edmund (Using Excel 2000) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatic update of links has been disabled - how do I get rid of | Excel Discussion (Misc queries) | |||
Error 1004 from worksheet activate procedure | Excel Programming | |||
How to Activate procedure with parameters | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming | |||
Activate event | Excel Programming |