Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Closing Excel Completely

David

you need Application.Quit on the end

Regards

Trevor


"David W" wrote in message
...
How do I get excel to close all the way out
I got this code to almost to do it but it don't

Private Sub CommandButton1_Click()
MsgBox "Please Call In"
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Closing Excel Completely

This:


Application.DisplayAlerts = False

Application.Quit

Application.DisplayAlerts = True


application false will not display any box asking you close

true will restore it.



Cesar



"Trevor Shuttleworth" wrote in message
...
David

you need Application.Quit on the end

Regards

Trevor


"David W" wrote in message
...
How do I get excel to close all the way out
I got this code to almost to do it but it don't

Private Sub CommandButton1_Click()
MsgBox "Please Call In"
ActiveWorkbook.Save
ActiveWorkbook.Close
End Sub






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
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
Excel 2007 - Links are not completely displayed EMG Links and Linking in Excel 1 August 23rd 07 08:42 AM
Completely Exit Excel Macro Rob Excel Discussion (Misc queries) 3 July 13th 07 12:56 PM
Excel not completely closing down CIU2310 Excel Discussion (Misc queries) 0 October 17th 06 11:27 PM
my files won't load completely in excel Emilee Excel Discussion (Misc queries) 1 February 3rd 05 12:57 AM


All times are GMT +1. The time now is 04:25 AM.

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"