Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Daniel Bonallack
 
Posts: n/a
Default Stop calculating on open

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eric_MUC
 
Posts: n/a
Default Stop calculating on open

Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time till'
it has calculated - have you every tried to hit "Esc" during calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric


"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Daniel Bonallack
 
Posts: n/a
Default Stop calculating on open

Wow - a fabulous solution! Thanks!

"Eric_MUC" wrote:

Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time till'
it has calculated - have you every tried to hit "Esc" during calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric


"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Stop calculating on open

You sure that it calculates when you hit F9??

From VBA's help for the .enablecalculation property:

When the value of this property is False, you cannot request a recalculation.
When you change the value from False to True, Excel recalculates the worksheet.



Eric_MUC wrote:

Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time till'
it has calculated - have you every tried to hit "Esc" during calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric

"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Stop calculating on open

I think I'd use a helper workbook that turns off calculation, then loads your
real file.

Daniel Bonallack wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eric_MUC
 
Posts: n/a
Default Stop calculating on open

Hi Dave,

I tried it - it does....at least in my MS Excel... ;)

Best wishes,
Eric


"Dave Peterson" wrote:

You sure that it calculates when you hit F9??

From VBA's help for the .enablecalculation property:

When the value of this property is False, you cannot request a recalculation.
When you change the value from False to True, Excel recalculates the worksheet.



Eric_MUC wrote:

Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time till'
it has calculated - have you every tried to hit "Esc" during calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric

"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eric_MUC
 
Posts: n/a
Default Stop calculating on open

Hi Dave,

to make sure I'm not wrong I re-tried it and this is very strange:
Some calculations are done - some not.... e.g. "SUM" is not calculated while
"Now" is calculated when hitting F9.

OK...to ensure calculation is possible, I'd add either a button on the
worksheet or assign a macro to a shortcut to make it calculate (by setting
worksheet.enablecalculation=True and after calculation again to "False".
This would enable me to calculate the sheet whenever I (and not Excel ;) )
want to but I'd be sure to use False as a standard.

Best wishes,
Eric


"Dave Peterson" wrote:

You sure that it calculates when you hit F9??

From VBA's help for the .enablecalculation property:

When the value of this property is False, you cannot request a recalculation.
When you change the value from False to True, Excel recalculates the worksheet.



Eric_MUC wrote:

Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time till'
it has calculated - have you every tried to hit "Esc" during calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric

"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy if I
forget to turn off automatic calculation, as it can take 10 minutes to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens, but
unfortunately, that workbook_open procedure seems to fire after the workbook
has been through the calculation process. Is there any code that runs
immediately when a file is opened?

Thanks in advance
Daniel


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RSantos
 
Posts: n/a
Default Stop calculating on open


Eric_MUC Wrote:
Hi Daniel,

there's an easy way - without any programming... ;)

Simply load the file and (unfortunately you'll have to wait this time
till'
it has calculated - have you every tried to hit "Esc" during
calculation?)

Now, you select "Tools" - "Macros" - "Visual Basic-Editor".
In the Project Explorer you'll see the sheets of your workbook.
Select the one which has these tremendous calculations.
Now you should see in the properties of the sheet the property
"EnableCalculation".
Set this to False and you're done.

Now the sheet only calculates if you hit "F9"... ;)

Hope this helps and best wishes,
Eric


"Daniel Bonallack" wrote:

I have a large file which I open frequently, and it drives me crazy

if I
forget to turn off automatic calculation, as it can take 10 minutes

to
calculate - I usually crash out of Excel to stop it.

I added code to switch calculation to manual as the workbook opens,

but
unfortunately, that workbook_open procedure seems to fire after the

workbook
has been through the calculation process. Is there any code that

runs
immediately when a file is opened?

Thanks in advance
Daniel


HI I´m trying to use option of setting enablecalculation to false, but
when I reopen the document this property is set to true again. I´m
saving the document after setting enable calculation to false, but it
doesn´t work.


--
RSantos
------------------------------------------------------------------------
RSantos's Profile: http://www.excelforum.com/member.php...o&userid=31240
View this thread: http://www.excelforum.com/showthread...hreadid=511965

Reply
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
excel does not open files on double click awangari Setting up and Configuration of Excel 1 February 10th 06 03:15 PM
cannot open an xl97 file maxzsim Excel Discussion (Misc queries) 1 June 24th 05 12:29 PM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM
How do I stop the activeX screen appearing when I open excel The CAT Excel Discussion (Misc queries) 1 May 28th 05 04:56 PM
Formulas stop calculating at random times when editing a few spreadsheets. Luke MacNeil Excel Discussion (Misc queries) 3 November 30th 04 03:21 PM


All times are GMT +1. The time now is 12:04 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"