Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help - setting up manual recalculation when opeing a file (but before it starts recalculating)

My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Help - setting up manual recalculation when opeing a file (but before it starts recalculating)

Perhaps setting the EnableCalculation property of the worksheet or sheets
that bog you down to false and then setting them to true when you're ready
will do it.

Good luck,
Geoff

From the Excel VBA help file:
EnableCalculation Property Example

This example sets Microsoft Excel to not recalculate worksheet one
automatically.

Worksheets(1).EnableCalculation = False


--
--take out the nope to reach me--
"German" wrote in message
...
My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 968
Default Help - setting up manual recalculation when opeing a file (but before it starts recalculating)

Unfortunately Excel does not save the enablecalculation property with the
workbook, so it is always true when a workbook is opened and will not help
you prevent a workbook from recalculating when opened.

Excel sets its initial calculation state from the first workbook it opens.

So either set your workbook to manual and make sure it is the first workbook
opened, or make another workbook with calculation set to manual and save it
in excelstart.

Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

"Geoff Martin" wrote in message
...
Perhaps setting the EnableCalculation property of the worksheet or sheets
that bog you down to false and then setting them to true when you're ready
will do it.

Good luck,
Geoff

From the Excel VBA help file:
EnableCalculation Property Example

This example sets Microsoft Excel to not recalculate worksheet one
automatically.

Worksheets(1).EnableCalculation = False


--
--take out the nope to reach me--
"German" wrote in message
...
My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help - setting up manual recalculation - Many Thanks for your help!

Thank you very much for your help.

German.

On Fri, 30 Jan 2004 09:36:52 -0000, "Charles Williams"
wrote:

Unfortunately Excel does not save the enablecalculation property with the
workbook, so it is always true when a workbook is opened and will not help
you prevent a workbook from recalculating when opened.

Excel sets its initial calculation state from the first workbook it opens.

So either set your workbook to manual and make sure it is the first workbook
opened, or make another workbook with calculation set to manual and save it
in excelstart.

Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

"Geoff Martin" wrote in message
...
Perhaps setting the EnableCalculation property of the worksheet or sheets
that bog you down to false and then setting them to true when you're ready
will do it.

Good luck,
Geoff

From the Excel VBA help file:
EnableCalculation Property Example

This example sets Microsoft Excel to not recalculate worksheet one
automatically.

Worksheets(1).EnableCalculation = False


--
--take out the nope to reach me--
"German" wrote in message
...
My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Help - setting up manual recalculation when opeing a file (but before it starts recalculating)

That's good to know, Charles--thanks for the info. I don't know how many
times I've tried something, only to find out it doesn't "stick" after
saving, closing, and reopening a workbook. Sorry for the misleading
information, German. I'll be a bit more careful about sticking to what I
know in future posts!

Regards,
Geoff

--
--take out the nope to reach me--
"Charles Williams" wrote in message
...
Unfortunately Excel does not save the enablecalculation property with the
workbook, so it is always true when a workbook is opened and will not help
you prevent a workbook from recalculating when opened.

Excel sets its initial calculation state from the first workbook it opens.

So either set your workbook to manual and make sure it is the first

workbook
opened, or make another workbook with calculation set to manual and save

it
in excelstart.

Charles
______________________
Decision Models
FastExcel Version 2 now available.
www.DecisionModels.com/FxlV2WhatsNew.htm

"Geoff Martin" wrote in message
...
Perhaps setting the EnableCalculation property of the worksheet or

sheets
that bog you down to false and then setting them to true when you're

ready
will do it.

Good luck,
Geoff

From the Excel VBA help file:
EnableCalculation Property Example

This example sets Microsoft Excel to not recalculate worksheet one
automatically.

Worksheets(1).EnableCalculation = False


--
--take out the nope to reach me--
"German" wrote in message
...
My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help - setting up manual recalculation when opeing a file (but before it starts recalculating)

Where did you put the code?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"German" wrote in message
...
My file is loaded with custom functions and therefore recalculates
very slowly. To make it easier to work with the file I set it to
"manual" calculations.
However, I have a problem when opening the file - it immediately
starts recalculating and it takes forever for the file to open. The
only solution is to set options to manual calculation before opening
the file. I tried to automate this by writing a code under
"ThisWorkbook" object:

Private Sub Workbook_Open()

Application.Calculation = xlCalculationManual

End Sub

Unfortunately, it didn't solve the problem. This code doesn't seem to
be working - the file still recalculates when I open it. Is there a
way to automate this and set options to manual calculation when
opening the file, but before it starts recalculating everything?

Thank you for your help.

German.



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
Opeing older files in Excel 2007 - file date-stamp amended Tim Childs[_4_] Excel Discussion (Misc queries) 0 June 29th 11 08:27 PM
keep manual recalculation mode on Greg Excel Worksheet Functions 2 January 26th 10 03:43 PM
recalculation not recalculating some cells containing user functio velvetlady Excel Discussion (Misc queries) 2 January 14th 10 07:31 PM
Error opeing file Melanie Excel Discussion (Misc queries) 0 August 5th 08 09:07 PM
Manual calculation setting skewey Excel Discussion (Misc queries) 1 February 2nd 08 04:37 PM


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