Exit

Home Search Site Map

Up
Close
Exit
File Search...
Most Frequently Used
New...
Open...
Page Setup...
Permission
Print...
Print Area
Print Preview
Properties
Save
Save As...
Save as Web Page...
Save Workspace...
Send To
Web Page Preview

New! Excel User Group Now Open @ www.excelusergroup.org, Check It Out!


Menu command Type What happens next?
Exit  

Exits from the entire Excel application, closing all open workbooks. If any require saving as they have been changed, this will be offered for each.  An option is offered however to save all open workbooks before quitting Excel. (Note the 'Yes To All' option).

Sub ExitExcel()
'Fools Excel into thinking the workbook is saved
'So that when I go to exit it doesn't ask to save
ThisWorkbook.Saved = True
Application.Quit
End Subub

Copyright Nick Hodge 2008. All Rights Reserved.