Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Background Processes in File Save versus File SaveAs

Here's the screnario: Only 1 file is open; it has formulas, but they have
all been calculated. There is no before_save (or before_close) code. When I
do file/save from the menu (and also from VB), Excel does not do a
recalculation; however, when I do file/save as from the menu (and also if I
do it from VB and even if I use Application.Calculation = xlCalculationManual
before the saveas command), it does a recalculation. 3 questions:

1) Why does it act differently between file/save and file save as?
2) Why is my Application.Calculation = xlCalculationManual command being
ignored?
3) How can I force it to NOT recalculate during saveas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Background Processes in File Save versus File SaveAs

1) The short answer is that Save and Save As are different code paths. The
same applies in most of the other office applications by the way. Useful to
remember if you have a troublesome document or workbook.

2) It is not being ignored. Many things which are derived from the file
content are discarded to ensure the saved file is clean, the result cache is
one of these items. To save the result cache it must be regenerated.

3) You cannot. But you could move the SaveAs - One option might be to do
your SaveAs at the beginning of your code (or when you need to call the
recalc) and then Save at the end.


"Paige" wrote:

Here's the screnario: Only 1 file is open; it has formulas, but they have
all been calculated. There is no before_save (or before_close) code. When I
do file/save from the menu (and also from VB), Excel does not do a
recalculation; however, when I do file/save as from the menu (and also if I
do it from VB and even if I use Application.Calculation = xlCalculationManual
before the saveas command), it does a recalculation. 3 questions:

1) Why does it act differently between file/save and file save as?
2) Why is my Application.Calculation = xlCalculationManual command being
ignored?
3) How can I force it to NOT recalculate during saveas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Background Processes in File Save versus File SaveAs

Thanks James! Like your option re saving the file also; will definitely use
this.

"James Snell" wrote:

1) The short answer is that Save and Save As are different code paths. The
same applies in most of the other office applications by the way. Useful to
remember if you have a troublesome document or workbook.

2) It is not being ignored. Many things which are derived from the file
content are discarded to ensure the saved file is clean, the result cache is
one of these items. To save the result cache it must be regenerated.

3) You cannot. But you could move the SaveAs - One option might be to do
your SaveAs at the beginning of your code (or when you need to call the
recalc) and then Save at the end.


"Paige" wrote:

Here's the screnario: Only 1 file is open; it has formulas, but they have
all been calculated. There is no before_save (or before_close) code. When I
do file/save from the menu (and also from VB), Excel does not do a
recalculation; however, when I do file/save as from the menu (and also if I
do it from VB and even if I use Application.Calculation = xlCalculationManual
before the saveas command), it does a recalculation. 3 questions:

1) Why does it act differently between file/save and file save as?
2) Why is my Application.Calculation = xlCalculationManual command being
ignored?
3) How can I force it to NOT recalculate during saveas?

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
Confused here Prevent Saving File - but allow ONLY File SAVEAS Met JMay Excel Discussion (Misc queries) 2 June 17th 07 04:37 PM
How can I make File-Save , File-SaveAs Menu disabled? Zoo Excel Programming 4 June 5th 06 06:58 AM
What are hidden processes of SaveAs function xux Excel Programming 2 May 11th 06 09:58 PM
Save and Saveas Greyed out on tool bar and file menu Shareena Howley Setting up and Configuration of Excel 1 July 5th 05 01:02 PM
using SaveAs to save 'only' one sheet from one book to a new file Randy W Excel Programming 2 January 12th 04 08:21 PM


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