Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have used the following code to shut down Excel 2003 when the workbook is
closed but now that I am using Excel 2007 it no longer closes Excel, only the active workbook. I have tried everything to no avail and have the same results whether the workbook is in 2003 or 2007 format. Thanks in advance, Carl Private Sub Workbook_BeforeClose(Cancel As Boolean) Dim oCtrl As Office.CommandBarControl For Each oCtrl In Application.CommandBars.FindControls(ID:=21) oCtrl.Enabled = True Next oCtrl Application.DisplayFullScreen = False Application.Quit End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Office 2007 compatibility at office 2003 is not working for graphs | Excel Discussion (Misc queries) | |||
Application.Quit in Excel 2007 | Excel Programming | |||
Please free the Application Windows in Office 2007 | Excel Discussion (Misc queries) | |||
difference application.quit & application.close | Excel Programming | |||
macro to close excel application other than application.quit | Excel Programming |