LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Event Procedure (re-activate automatic calulation if disabled)

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)



 
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
Automatic update of links has been disabled - how do I get rid of Kevin Excel Discussion (Misc queries) 1 March 11th 10 05:57 PM
Error 1004 from worksheet activate procedure mikeburg[_9_] Excel Programming 1 July 14th 05 01:25 AM
How to Activate procedure with parameters ivarsb Excel Programming 3 July 27th 04 10:42 AM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM
Activate event Lynn[_3_] Excel Programming 2 September 13th 03 09:30 PM


All times are GMT +1. The time now is 04:31 AM.

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

About Us

"It's about Microsoft Excel"