PC Review


Reply
Thread Tools Rate Thread

Disable/enable recalc

 
 
Kjeldc
Guest
Posts: n/a
 
      2nd Dec 2009
I have workbook with lots of sheets and formulas and it takes forever to
recalc the workbook, whenever a new entry is made in a cell. Is it possible
to disable recalc for the whole workbook, and then start it with a
controlbutton?

Vista Ultimate/Office 2007
--
My programming is self-taught and
my teacher was not very experienced. :-)

cheers,
Kjeld
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      2nd Dec 2009
Hi,

You can disable manually or with code

Sub Yoursub()
Application.Calculation = xlCalculationManual
'your code
Application.Calculation=xlCalculationAutomatic

or
Office button - Excel Options - Fromulas and set to manual or automatic

Or attach the code above to a button on the Quick Access Toolbar (QAT) or on
the worksheet

Mike

"Kjeldc" wrote:

> I have workbook with lots of sheets and formulas and it takes forever to
> recalc the workbook, whenever a new entry is made in a cell. Is it possible
> to disable recalc for the whole workbook, and then start it with a
> controlbutton?
>
> Vista Ultimate/Office 2007
> --
> My programming is self-taught and
> my teacher was not very experienced. :-)
>
> cheers,
> Kjeld

 
Reply With Quote
 
B Lynn B
Guest
Posts: n/a
 
      2nd Dec 2009
If you want your button to act like a toggle, then just assign this macro to
it:

Sub CalcTog()

If Application.Calculation = xlCalculationAutomatic Then
Application.Calculation = xlCalculationManual
Else
Application.Calculation = xlCalculationAutomatic
End If

End Sub

"Kjeldc" wrote:

> I have workbook with lots of sheets and formulas and it takes forever to
> recalc the workbook, whenever a new entry is made in a cell. Is it possible
> to disable recalc for the whole workbook, and then start it with a
> controlbutton?
>
> Vista Ultimate/Office 2007
> --
> My programming is self-taught and
> my teacher was not very experienced. :-)
>
> cheers,
> Kjeld

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      2nd Dec 2009
Here is another way to write your toggle macro (a one-liner)...

Sub CalcToggle()
Application.Calculation = xlCalculationManual + xlCalculationAutomatic - Application.Calculation
End Sub

--
Rick (MVP - Excel)


"B Lynn B" <(E-Mail Removed)> wrote in message news:09C35F97-8B67-4D1E-890E-(E-Mail Removed)...
> If you want your button to act like a toggle, then just assign this macro to
> it:
>
> Sub CalcTog()
>
> If Application.Calculation = xlCalculationAutomatic Then
> Application.Calculation = xlCalculationManual
> Else
> Application.Calculation = xlCalculationAutomatic
> End If
>
> End Sub
>
> "Kjeldc" wrote:
>
>> I have workbook with lots of sheets and formulas and it takes forever to
>> recalc the workbook, whenever a new entry is made in a cell. Is it possible
>> to disable recalc for the whole workbook, and then start it with a
>> controlbutton?
>>
>> Vista Ultimate/Office 2007
>> --
>> My programming is self-taught and
>> my teacher was not very experienced. :-)
>>
>> cheers,
>> Kjeld

 
Reply With Quote
 
Kjeldc
Guest
Posts: n/a
 
      3rd Dec 2009
Thanks a'lot :-)
--
My programming is self-taught and
my teacher was not very experienced. :-)

cheers,
Kjeld


"Mike H" skrev:

> Hi,
>
> You can disable manually or with code
>
> Sub Yoursub()
> Application.Calculation = xlCalculationManual
> 'your code
> Application.Calculation=xlCalculationAutomatic
>
> or
> Office button - Excel Options - Fromulas and set to manual or automatic
>
> Or attach the code above to a button on the Quick Access Toolbar (QAT) or on
> the worksheet
>
> Mike
>
> "Kjeldc" wrote:
>
> > I have workbook with lots of sheets and formulas and it takes forever to
> > recalc the workbook, whenever a new entry is made in a cell. Is it possible
> > to disable recalc for the whole workbook, and then start it with a
> > controlbutton?
> >
> > Vista Ultimate/Office 2007
> > --
> > My programming is self-taught and
> > my teacher was not very experienced. :-)
> >
> > cheers,
> > Kjeld

 
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
Enable/Disable Box =?Utf-8?B?SGxld2lz?= Microsoft Access Form Coding 1 22nd Mar 2006 10:02 PM
Enable/Disable =?Utf-8?B?RGFuIEBCQ0JT?= Microsoft Access Form Coding 5 21st Mar 2006 08:26 PM
enable/disable =?Utf-8?B?YmxhZGVsb2Nr?= Microsoft Access Forms 1 22nd Nov 2005 04:08 PM
ENABLE OR DISABLE? RDG Windows XP New Users 2 5th Aug 2004 06:47 PM
XP disable/enable PeteC Windows XP Networking 0 27th Jul 2003 03:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:55 AM.