Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Disable/enable recalc

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Disable/enable recalc

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Disable/enable recalc

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Disable/enable recalc

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" wrote in message ...
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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Disable/enable recalc

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
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
Enable/Disable Macro D Excel Programming 2 January 11th 08 04:18 PM
Combo Box enable and disable Vinod[_2_] Excel Worksheet Functions 3 November 6th 07 05:30 PM
Enable/Disable macros Adam Excel Discussion (Misc queries) 2 March 11th 05 10:29 AM
SpinButton Enable/Disable MikeL Excel Programming 3 December 21st 04 02:51 PM


All times are GMT +1. The time now is 06:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"