Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default Auto Calculate - Some...

Is there some way I can tell Excel to auto calculate some sheets, but to
set others to manual? Essentially I have a bunch of sheets that all
need auto calc, but then another set that do final analysis and I'm only
interested in one of them at a time. If I could shut the others down it
would speed things up.

Incidentally, I'm using Excel 97 if that makes any difference.

Thanks...

Bill
  #2   Report Post  
Charles Williams
 
Posts: n/a
Default

There are 3 ways I know of to do something like this:

1. split the workbook into several workbooks, one containing all the "auto"
sheets and then one book for each of the "manual" sheets.
You will need links between the books as appropriate.
Then you can open the "auto" book and the "manual" book you are currently
interested in. Then when you want a different "manual" book you close the
one thats open and open the next one.

This will not work well if the links between the sheets are complex, and you
would need to have Excel in automatic mode so that the open "manual" book
would always calculate.

2. write some VBA that uses the enablecalculation property of the worksheets
to control whether they get automatically recalculated or not. This is not
all that straighforward.

3. use FastExcel mixed calculation mode.

Charles
______________________
Decision Models
FastExcel 2.1 now available
www.DecisionModels.com

"Bill Martin -- (Remove NOSPAM from address)"
wrote in message ...
Is there some way I can tell Excel to auto calculate some sheets, but to
set others to manual? Essentially I have a bunch of sheets that all need
auto calc, but then another set that do final analysis and I'm only
interested in one of them at a time. If I could shut the others down it
would speed things up.

Incidentally, I'm using Excel 97 if that makes any difference.

Thanks...

Bill



  #3   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Charles Williams wrote:
There are 3 ways I know of to do something like this:

1. split the workbook into several workbooks, one containing all the "auto"
sheets and then one book for each of the "manual" sheets.
You will need links between the books as appropriate.
Then you can open the "auto" book and the "manual" book you are currently
interested in. Then when you want a different "manual" book you close the
one thats open and open the next one.

This will not work well if the links between the sheets are complex, and you
would need to have Excel in automatic mode so that the open "manual" book
would always calculate.

2. write some VBA that uses the enablecalculation property of the worksheets
to control whether they get automatically recalculated or not. This is not
all that straighforward.

3. use FastExcel mixed calculation mode.


---------------

I've been pondering whether it's worth all the grief to split it up into
separate workbooks. I'm sort of philosophically opposed to that, but it
may be the pragmatic solution.

The VBA approach is what I wondered about. Sounds like one does exist.
I've got a VBA reference book on order so hopefully that'll arrive in
a few days and then I can stare at that approach a bit.

I guess I'll also stare at the spreadsheet some to see whether
suggestions from your web site help in this case. Possibly the one
about adding additional columns to reduce repeated calculations might
impact it significantly enough to be worthwhile.

Thanks Charles...

Bill
  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think this capability was added in xl2002.

But you could use something like:

Option Explicit
Sub TurnOffCalc()

Dim wks As Worksheet

For Each wks In ActiveWorkbook.Worksheets
Select Case LCase(wks.Name)
Case Is = "sheet1", "sheet3", "sheet5"
wks.EnableCalculation = False
End Select
Next wks

End Sub

To turn calculation off. (and "= True" to toggle it back on).

(Don't trust your output until you turn it back on for all the sheets--which
should recalc the sheets, too.)


"Bill Martin -- (Remove NOSPAM from address)" wrote:

Charles Williams wrote:
There are 3 ways I know of to do something like this:

1. split the workbook into several workbooks, one containing all the "auto"
sheets and then one book for each of the "manual" sheets.
You will need links between the books as appropriate.
Then you can open the "auto" book and the "manual" book you are currently
interested in. Then when you want a different "manual" book you close the
one thats open and open the next one.

This will not work well if the links between the sheets are complex, and you
would need to have Excel in automatic mode so that the open "manual" book
would always calculate.

2. write some VBA that uses the enablecalculation property of the worksheets
to control whether they get automatically recalculated or not. This is not
all that straighforward.

3. use FastExcel mixed calculation mode.


---------------

I've been pondering whether it's worth all the grief to split it up into
separate workbooks. I'm sort of philosophically opposed to that, but it
may be the pragmatic solution.

The VBA approach is what I wondered about. Sounds like one does exist.
I've got a VBA reference book on order so hopefully that'll arrive in
a few days and then I can stare at that approach a bit.

I guess I'll also stare at the spreadsheet some to see whether
suggestions from your web site help in this case. Possibly the one
about adding additional columns to reduce repeated calculations might
impact it significantly enough to be worthwhile.

Thanks Charles...

Bill


--

Dave Peterson
  #5   Report Post  
Bill Martin -- (Remove NOSPAM from address)
 
Posts: n/a
Default

Dave Peterson wrote:
I think this capability was added in xl2002.

But you could use something like:

Option Explicit
Sub TurnOffCalc()

Dim wks As Worksheet

For Each wks In ActiveWorkbook.Worksheets
Select Case LCase(wks.Name)
Case Is = "sheet1", "sheet3", "sheet5"
wks.EnableCalculation = False
End Select
Next wks

End Sub

To turn calculation off. (and "= True" to toggle it back on).

(Don't trust your output until you turn it back on for all the sheets--which
should recalc the sheets, too.)


-------

I'll tinker with that some. I'm not philosophically opposed to
upgrading my Excel from 97, I just haven't yet hit a situation where I
needed a new feature. Perhaps I've hit it now and need to reconsider.

Thanks Dave...

Bill


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
How do I calculate EDATE using days not months? pshift Excel Discussion (Misc queries) 4 April 21st 23 09:02 AM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 02:55 AM
Column character width on auto filter Floyd III Excel Discussion (Misc queries) 2 January 7th 05 01:59 AM
Auto Calculation Automatically Turns Off???? Jeff K. Excel Discussion (Misc queries) 2 December 15th 04 01:39 AM
Auto Fill Options Patti B Excel Discussion (Misc queries) 3 December 9th 04 12:49 AM


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