Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Event for CalcState?
I have written some code to provide a right-click shortcut to toggle
Auto/Manual calculation modes. This code changes the State property on the menu to provide a check mark if Manual calculation is on. This all works fine, but how would I know if someone used the 'normal' Tools/Options/Calculation to change calculation modes (and therefore be able to update my menu item)? I looked at Application Events but didn't think any of them would trigger based on changing calculation modes. Is there a way to accomplish this? I am using XP SP2 and XL2003. Thanks in advance for any help provided. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Event for CalcState?
There is no event that is always triggered by changing calculation modes. If
you change from manual to automatic a calculate event is fired, but the opposite is not true, therefore there is no perfect solution. You can check by looking at Application.calculation whether someone/something had changed it: you just have to decide which events to use to do the check. Charles ______________________ Decision Models FastExcel 2.2 Beta now available www.DecisionModels.com "M. Authement" wrote in message ... I have written some code to provide a right-click shortcut to toggle Auto/Manual calculation modes. This code changes the State property on the menu to provide a check mark if Manual calculation is on. This all works fine, but how would I know if someone used the 'normal' Tools/Options/Calculation to change calculation modes (and therefore be able to update my menu item)? I looked at Application Events but didn't think any of them would trigger based on changing calculation modes. Is there a way to accomplish this? I am using XP SP2 and XL2003. Thanks in advance for any help provided. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Event for CalcState?
Thanks Charles. It wasn't what I was hoping to hear, but I was kind of
expecting to hear it. "Charles Williams" wrote in message ... There is no event that is always triggered by changing calculation modes. If you change from manual to automatic a calculate event is fired, but the opposite is not true, therefore there is no perfect solution. You can check by looking at Application.calculation whether someone/something had changed it: you just have to decide which events to use to do the check. Charles ______________________ Decision Models FastExcel 2.2 Beta now available www.DecisionModels.com "M. Authement" wrote in message ... I have written some code to provide a right-click shortcut to toggle Auto/Manual calculation modes. This code changes the State property on the menu to provide a check mark if Manual calculation is on. This all works fine, but how would I know if someone used the 'normal' Tools/Options/Calculation to change calculation modes (and therefore be able to update my menu item)? I looked at Application Events but didn't think any of them would trigger based on changing calculation modes. Is there a way to accomplish this? I am using XP SP2 and XL2003. Thanks in advance for any help provided. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
MsgBox in Enter event causes combobox not to run Change event | Excel Programming | |||
How to trap delete row event and hide column event? | Excel Programming | |||
user form-on open event? keydown event? | Excel Programming | |||
Event Procedures: Event on Worksheet to fire Event on another Worksheet | Excel Programming | |||
OnTime event not firing in Workbook_Open event procedure | Excel Programming |