Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default All sheets calculate after saveas

I am using Excel via automation with vba and handling sheet calculate
events to handle changes made to the sheet. However, following a saveAs
for the workbook a sheet calculate event occurs for all the sheets. Is
there a way I can prevent this from happening.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default All sheets calculate after saveas

application.calculatebeforesave = false

or something like that... as always since this is an application level
setting make sore to use an errorhandler to reset the value in case of a
crash.
--
HTH...

Jim Thomlinson


"Andy" wrote:

I am using Excel via automation with vba and handling sheet calculate
events to handle changes made to the sheet. However, following a saveAs
for the workbook a sheet calculate event occurs for all the sheets. Is
there a way I can prevent this from happening.

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default All sheets calculate after saveas

thanks

I tried that, now the saveAs is fast, but next time I write a change to
a cell, all the sheets are calculated. This doesn't happen after a
save, just a saveAs.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default All sheets calculate after saveas

I am not 100% sue what is going on there... Check out this link for
calculation secrets. There might be something in here to help you...

http://www.decisionmodels.com/index.htm
--
HTH...

Jim Thomlinson


"Andy" wrote:

thanks

I tried that, now the saveAs is fast, but next time I write a change to
a cell, all the sheets are calculated. This doesn't happen after a
save, just a 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
Calculate individual sheets? Jase Excel Discussion (Misc queries) 1 April 2nd 09 05:32 PM
Calculate data from different sheets Stefan Excel Discussion (Misc queries) 4 April 1st 09 12:30 PM
new sheets by this pc cannot calculate formulas Jeffry61 Excel Discussion (Misc queries) 12 September 23rd 05 07:21 PM
Calculate all sheets Pat Excel Programming 1 January 17th 05 05:36 PM
Calculate Individual Sheets PosseJohn Excel Programming 2 December 12th 04 08:18 PM


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