Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Should I remove code lines that turn auto calculation off?
Norman gave me some code that I have used to solve a problem I had
yesterday (Thanks Norman). I have been able to alter the code so that it better suits my circumstances eg my sheets have no formulas so I deleted all code referring to cells with formulas. The code also contains lines that convert calculation mode to manual then back to initial calc mode at the end. I am guessing that this is aimed at making the macro run as fast as possible, similar to setting screenupdating to false. Since my worksheets have no formulas, can I remove these sections of code without affecting the speed of my macro? Ken Johnson |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Should I remove code lines that turn auto calculation off?
Hi Ken,
Since my worksheets have no formulas, can I remove these sections of code without affecting the speed of my macro? If you do not need to consider calculation issue, delete, or comment, these lines. --- Regards, Norman "Ken Johnson" wrote in message oups.com... Norman gave me some code that I have used to solve a problem I had yesterday (Thanks Norman). I have been able to alter the code so that it better suits my circumstances eg my sheets have no formulas so I deleted all code referring to cells with formulas. The code also contains lines that convert calculation mode to manual then back to initial calc mode at the end. I am guessing that this is aimed at making the macro run as fast as possible, similar to setting screenupdating to false. Since my worksheets have no formulas, can I remove these sections of code without affecting the speed of my macro? Ken Johnson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Should I remove code lines that turn auto calculation off?
Easiest is to try it and see, but based soley on your description I would
expect it would not affect the speed . -- Regards, Tom Ogilvy "Ken Johnson" wrote in message oups.com... Norman gave me some code that I have used to solve a problem I had yesterday (Thanks Norman). I have been able to alter the code so that it better suits my circumstances eg my sheets have no formulas so I deleted all code referring to cells with formulas. The code also contains lines that convert calculation mode to manual then back to initial calc mode at the end. I am guessing that this is aimed at making the macro run as fast as possible, similar to setting screenupdating to false. Since my worksheets have no formulas, can I remove these sections of code without affecting the speed of my macro? Ken Johnson |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Should I remove code lines that turn auto calculation off?
Norman and Tom,
Thanks for your responses. I guessed that would be the case, just wanted confirmation. Ken Johnson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Turn on/off calculation in worksheet | Excel Discussion (Misc queries) | |||
Turn off or not include lines in a calculation | Excel Worksheet Functions | |||
how do i turn off calculation of cells | Excel Discussion (Misc queries) | |||
turn a spreadsheet calculation into a function | Excel Programming | |||
Code to automatically turn on and turn off Track Changes | Excel Programming |