Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Help. I have a macro save my open workbooks and close
them. Can anyone provide a line of code to automatically end my Excel session. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Phil,
Application.Quit Will shut down Excel. It needs to be placed instead of the .Close statement (once your workbook is "Closed", any coding after the .Close statement will not run. If you want to insure that the user doesn't get any alerts, use Application.DisplayAlerts = False before the .Quit statement. Be aware that doing so will now quit Excel and close all open workbooks without prompting for a save. John Phil wrote: Help. I have a macro save my open workbooks and close them. Can anyone provide a line of code to automatically end my Excel session. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Phil,
Application.Quit -- sb "Phil" wrote in message ... Help. I have a macro save my open workbooks and close them. Can anyone provide a line of code to automatically end my Excel session. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing workbooks w/o closing Excel | Excel Discussion (Misc queries) | |||
Closing Excel with Red X | Excel Discussion (Misc queries) | |||
Closing Excel | Excel Discussion (Misc queries) | |||
Closing Excel | Excel Discussion (Misc queries) | |||
Closing Excel in VBA | Excel Programming |