Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default How do I close/exit Excel programmatically

I have several Excel files that I run automatically overnight. Excel remains
open after each file has run and closed. Thus, I have several sessions of
Excel open. This is a problem over the weekend. Is there something I can
add to the VB code that will close Excel after the file processing is done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default How do I close/exit Excel programmatically

application.displayalerts = false
application.quit

Make darn sure that you have saved everything before you run this code. It
closes things without asking if you would like to save.
--
HTH...

Jim Thomlinson


"Jesse" wrote:

I have several Excel files that I run automatically overnight. Excel remains
open after each file has run and closed. Thus, I have several sessions of
Excel open. This is a problem over the weekend. Is there something I can
add to the VB code that will close Excel after the file processing is done?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How do I close/exit Excel programmatically

Look in help at the Quit command

--
Regards,
Tom Ogilvy

"Jesse" wrote in message
...
I have several Excel files that I run automatically overnight. Excel

remains
open after each file has run and closed. Thus, I have several sessions of
Excel open. This is a problem over the weekend. Is there something I can
add to the VB code that will close Excel after the file processing is

done?


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 close all workbooks and exit excel with one click? Glen@DFR Excel Discussion (Misc queries) 5 July 10th 08 03:46 PM
Exit Excel programmatically Bob Holmes Excel Programming 2 June 7th 04 03:20 PM
Close and Exit Excel MikeWaldron Excel Programming 0 September 8th 03 05:31 PM
Close and Exit Excel Stephan Kassanke Excel Programming 3 September 8th 03 05:30 PM
programmatically close help file before Excel closes? RB Smissaert Excel Programming 2 July 21st 03 11:49 AM


All times are GMT +1. The time now is 02:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"