PC Review


Reply
Thread Tools Rate Thread

Ablity to just recalc one worksheet

 
 
=?Utf-8?B?Q2FtZXJvbg==?=
Guest
Posts: n/a
 
      24th Jan 2007
is there a way to setup a macro to just recalc one worksheet rather then the
entire project?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      24th Jan 2007
Not that I'm aware of (someone else may later make me aware of one) -
consider that if there are any off-sheet dependencies, they may need to be
recalculated to make the results on your one sheet accurate.

If constant recalculating is causing a real slowdown, you could turn
automatic calculation off and then manually recalculate when only when you
feel the need.

To set calculation to Manual:
Tools | Options | [Calculation] tab - choose Manual
to calculate manually while the workbook is in use: [F9]

"Cameron" wrote:

> is there a way to setup a macro to just recalc one worksheet rather then the
> entire project?

 
Reply With Quote
 
theSquirrel
Guest
Posts: n/a
 
      25th Jan 2007
In the "ThisWorkbook" module, put enter this code:

Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In Worksheets
ws.EnableCalculation = False
Next ws
Worksheets("Sheet1").EnableCalculation = True
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim ws As Worksheet
For Each ws In Worksheets
ws.EnableCalculation = True
Next ws
End Sub

Taht should work to disable the calculations upon opening hte workbook
then reenable them when leaving the applicaiont.

Where it says "Worksheets("Sheet1").EnableCalculation = True" you need
to enter the name of the sheet that you want to enable calculations on.

Hope the helps.

theSquirrel


On Jan 24, 2:41 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)>
wrote:
> Not that I'm aware of (someone else may later make me aware of one) -
> consider that if there are any off-sheet dependencies, they may need to be
> recalculated to make the results on your one sheet accurate.
>
> If constant recalculating is causing a real slowdown, you could turn
> automatic calculation off and then manually recalculate when only when you
> feel the need.
>
> To set calculation to Manual:
> Tools | Options | [Calculation] tab - choose Manual
> to calculate manually while the workbook is in use: [F9]
>
>
>
> "Cameron" wrote:
> > is there a way to setup a macro to just recalc one worksheet rather then the
> > entire project?- Hide quoted text -- Show quoted text -


 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      25th Jan 2007
Cameron,
Check the Help for the Calculate method.
You will see the objects that it can be applied.
(Hint: The answer to your question is Yes)

NickHK

"Cameron" <(E-Mail Removed)> wrote in message
news:10CA4C53-5CEC-423B-B8DD-(E-Mail Removed)...
> is there a way to setup a macro to just recalc one worksheet rather then

the
> entire project?



 
Reply With Quote
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      25th Jan 2007
See, I knew someone would make me 'aware'! Thanks for that. Now tucked away
for future use.
Learn something new everyday here - great group effort!

"theSquirrel" wrote:

> In the "ThisWorkbook" module, put enter this code:
>
> Private Sub Workbook_Open()
> Dim ws As Worksheet
> For Each ws In Worksheets
> ws.EnableCalculation = False
> Next ws
> Worksheets("Sheet1").EnableCalculation = True
> End Sub
>
> Private Sub Workbook_BeforeClose(Cancel As Boolean)
> Dim ws As Worksheet
> For Each ws In Worksheets
> ws.EnableCalculation = True
> Next ws
> End Sub
>
> Taht should work to disable the calculations upon opening hte workbook
> then reenable them when leaving the applicaiont.
>
> Where it says "Worksheets("Sheet1").EnableCalculation = True" you need
> to enter the name of the sheet that you want to enable calculations on.
>
> Hope the helps.
>
> theSquirrel
>
>
> On Jan 24, 2:41 pm, JLatham <HelpFrom @ Jlathamsite.com.(removethis)>
> wrote:
> > Not that I'm aware of (someone else may later make me aware of one) -
> > consider that if there are any off-sheet dependencies, they may need to be
> > recalculated to make the results on your one sheet accurate.
> >
> > If constant recalculating is causing a real slowdown, you could turn
> > automatic calculation off and then manually recalculate when only when you
> > feel the need.
> >
> > To set calculation to Manual:
> > Tools | Options | [Calculation] tab - choose Manual
> > to calculate manually while the workbook is in use: [F9]
> >
> >
> >
> > "Cameron" wrote:
> > > is there a way to setup a macro to just recalc one worksheet rather then the
> > > entire project?- Hide quoted text -- Show quoted text -

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does manual recalc attach to a worksheet Jeff Brody Microsoft Excel Misc 1 26th Apr 2008 12:08 AM
Outlook calendar ablity to put moon phases =?Utf-8?B?SnVzdGRpYWx0?= Microsoft Outlook Calendar 1 29th Jan 2006 05:29 PM
lost ablity to click links in e-mail messages =?Utf-8?B?aXNsYW5kaWRlYQ==?= Microsoft Outlook Discussion 1 13th Oct 2005 04:23 PM
Ablity to Update DataSet from DataGrid ETuggle Microsoft VB .NET 1 6th Oct 2003 08:32 PM
Allow ablity to format and install device drivers Mark Windows XP Security 0 10th Sep 2003 08:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:35 PM.