Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Exit Excel Automatically

I was wondering if there was an easy way to exit Excel automatically once all the Auto_Open Macros completed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default How to Exit Excel Automatically

hi
Try Application.Quit to exit the whole of excel or
ThisWorkbook.Close to close the current workbook.

-----Original Message-----
I was wondering if there was an easy way to exit Excel

automatically once all the Auto_Open Macros completed.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default How to Exit Excel Automatically

JPMS,

In addition to the other responses that you rec'd, you might
want to use:
Application.DisplayAlerts = False
just before the
Application.Quit

This will suppress any prompts to save the workbook
if your macros have made any changes to it.

John

"JMPS" wrote in message
...
I was wondering if there was an easy way to exit Excel automatically once

all the Auto_Open Macros completed.


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
How do I set up a file to automatically save on exit? Brian Excel Discussion (Misc queries) 1 May 15th 10 04:34 PM
exit cell automatically after entering data Patrick Riley Excel Worksheet Functions 0 March 20th 08 03:23 PM
Excel 07 won't exit Elle Setting up and Configuration of Excel 0 July 27th 07 12:40 AM
exit excel welshwizzard Excel Discussion (Misc queries) 1 January 18th 05 12:02 AM
crash when exit excel 97 Christy[_2_] Excel Programming 0 September 30th 03 01:58 AM


All times are GMT +1. The time now is 02:10 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"