Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Before workbook close
I would like to set up my workbook to change to manual calculation o workbook open and switch back to auto calculation before workboo close -- ceem ----------------------------------------------------------------------- ceemo's Profile: http://www.excelforum.com/member.php...fo&userid=1065 View this thread: http://www.excelforum.com/showthread.php?threadid=39640 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Before workbook close
Hi.
on open Application.Calculation = xlCalculationManual on close Application.Calculation = xlCalculationAutomatic Regards JY "ceemo" wrote in message ... I would like to set up my workbook to change to manual calculation on workbook open and switch back to auto calculation before workbook close. -- ceemo ------------------------------------------------------------------------ ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650 View this thread: http://www.excelforum.com/showthread...hreadid=396408 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Before workbook close
Option Explicit
Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.Calculation = xlCalculationAutomatic End Sub Private Sub Workbook_Open() Application.Calculation = xlCalculationManual End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code -- HTH RP (remove nothere from the email address if mailing direct) "ceemo" wrote in message ... I would like to set up my workbook to change to manual calculation on workbook open and switch back to auto calculation before workbook close. -- ceemo ------------------------------------------------------------------------ ceemo's Profile: http://www.excelforum.com/member.php...o&userid=10650 View this thread: http://www.excelforum.com/showthread...hreadid=396408 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Close Workbook | Excel Programming | |||
Before Close workbook? | Excel Programming | |||
close only one workbook | New Users to Excel | |||
Close a the current workbook and load another specified workbook | Excel Programming | |||
cannot close workbook | Excel Programming |