Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Setting calculation mode via a macro

This is similar to a post of a few days ago which seems to have garnered zero attention, so I will simplify:

When I open up one particular file (which has data tables), I would like a macro to immediately tell EXCEL that I want to temporarily alter my normal default setting which is Tools - Options - Calculation - Automatic and, instead, use Tools - Options - Calculation - Automatic Without Data Tables.

Can this EXCEL setting be changed by a macro that automatically launches when this file is opened?

Thank you very much!
Dean
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Setting calculation mode via a macro

Use an OnOpen Macro with this line of code:
Application.Calculation = xlSemiautomatic

HTH

Charles Chickering
Dean wrote:
This is similar to a post of a few days ago which seems to have garnered zero attention, so I will simplify:

When I open up one particular file (which has data tables), I would like a macro to immediately tell EXCEL that I want to temporarily alter my normal default setting which is Tools - Options - Calculation - Automatic and, instead, use Tools - Options - Calculation - Automatic Without Data Tables.

Can this EXCEL setting be changed by a macro that automatically launches when this file is opened?

Thank you very much!
Dean


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Setting calculation mode via a macro

Yes, this is what I tried and posted about 3 days ago in a post entitled
"Execute Upon Opening". I used the coding you have described. Strangely,
that same file that did not work then, seems to be working now! My only
remaining question, for now, is that:

Upon opening this file, it seems to update the data tables (as evidenced by
the lower right showing "Table 1", then "Table 2...". After it is done, the
workbook does show as being automatic except data tables, as I like.
Assuming it is recalcing these tables upon opening, is there any way to stop
it from doing so; or does it need to do this just once to establish some
sort of initial workbook integrity?

Also, if the user does want to recalc the data tables every once in a while,
is there a key one can hit that does this one time only, without resetting
the setting.

Thank you Charles!
Dean

"Die_Another_Day" wrote in message
ups.com...
Use an OnOpen Macro with this line of code:
Application.Calculation = xlSemiautomatic

HTH

Charles Chickering
Dean wrote:
This is similar to a post of a few days ago which seems to have garnered
zero attention, so I will simplify:

When I open up one particular file (which has data tables), I would like
a macro to immediately tell EXCEL that I want to temporarily alter my
normal default setting which is Tools - Options - Calculation - Automatic
and, instead, use Tools - Options - Calculation - Automatic Without Data
Tables.

Can this EXCEL setting be changed by a macro that automatically launches
when this file is opened?

Thank you very much!
Dean




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Setting calculation mode via a macro

I think you can use F9 to recalculate, but I'm not sure if that will
recalc the tables as well. I think Shift+F9 is supposed to recalc all.
I don't know if you can stop the calculation upon opening.

Charles
Dean wrote:
Yes, this is what I tried and posted about 3 days ago in a post entitled
"Execute Upon Opening". I used the coding you have described. Strangely,
that same file that did not work then, seems to be working now! My only
remaining question, for now, is that:

Upon opening this file, it seems to update the data tables (as evidenced by
the lower right showing "Table 1", then "Table 2...". After it is done, the
workbook does show as being automatic except data tables, as I like.
Assuming it is recalcing these tables upon opening, is there any way to stop
it from doing so; or does it need to do this just once to establish some
sort of initial workbook integrity?

Also, if the user does want to recalc the data tables every once in a while,
is there a key one can hit that does this one time only, without resetting
the setting.

Thank you Charles!
Dean

"Die_Another_Day" wrote in message
ups.com...
Use an OnOpen Macro with this line of code:
Application.Calculation = xlSemiautomatic

HTH

Charles Chickering
Dean wrote:
This is similar to a post of a few days ago which seems to have garnered
zero attention, so I will simplify:

When I open up one particular file (which has data tables), I would like
a macro to immediately tell EXCEL that I want to temporarily alter my
normal default setting which is Tools - Options - Calculation - Automatic
and, instead, use Tools - Options - Calculation - Automatic Without Data
Tables.

Can this EXCEL setting be changed by a macro that automatically launches
when this file is opened?

Thank you very much!
Dean



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Setting calculation mode via a macro

It looks like F9 does recalc all, including tables, and shift-F9 simply
recalcs the current worksheet.

Does anyone else know if there is a way to avoid calc'ing the data tables
upon initial opening? You would think it would not need to since it
probably recalcs them upon closing/saving.

Thanks, DAD.

"Die_Another_Day" wrote in message
ps.com...
I think you can use F9 to recalculate, but I'm not sure if that will
recalc the tables as well. I think Shift+F9 is supposed to recalc all.
I don't know if you can stop the calculation upon opening.

Charles
Dean wrote:
Yes, this is what I tried and posted about 3 days ago in a post entitled
"Execute Upon Opening". I used the coding you have described.
Strangely,
that same file that did not work then, seems to be working now! My only
remaining question, for now, is that:

Upon opening this file, it seems to update the data tables (as evidenced
by
the lower right showing "Table 1", then "Table 2...". After it is done,
the
workbook does show as being automatic except data tables, as I like.
Assuming it is recalcing these tables upon opening, is there any way to
stop
it from doing so; or does it need to do this just once to establish some
sort of initial workbook integrity?

Also, if the user does want to recalc the data tables every once in a
while,
is there a key one can hit that does this one time only, without
resetting
the setting.

Thank you Charles!
Dean

"Die_Another_Day" wrote in message
ups.com...
Use an OnOpen Macro with this line of code:
Application.Calculation = xlSemiautomatic

HTH

Charles Chickering
Dean wrote:
This is similar to a post of a few days ago which seems to have
garnered
zero attention, so I will simplify:

When I open up one particular file (which has data tables), I would
like
a macro to immediately tell EXCEL that I want to temporarily alter my
normal default setting which is Tools - Options - Calculation -
Automatic
and, instead, use Tools - Options - Calculation - Automatic Without
Data
Tables.

Can this EXCEL setting be changed by a macro that automatically
launches
when this file is opened?

Thank you very much!
Dean






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
Ommitting 0 from a mode calculation. Steve Excel Discussion (Misc queries) 1 October 4th 06 08:58 AM
Calculation mode retention David Excel Programming 2 September 27th 05 04:10 PM
Calculation Mode Norman Jones Excel Programming 1 January 27th 05 01:39 AM
Calculation Mode Jim Rech Excel Programming 0 September 7th 04 06:33 PM
Calculation mode K Dales Excel Programming 4 May 14th 04 02:11 PM


All times are GMT +1. The time now is 11:44 PM.

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"