Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Closing Excel down with a macro?

Hi,

I am using ActiveWorkbook.Close to close my spreadsheets but I woul
also like to terminate Excel too.

I have tried Application.Quit but this did nothing and Excel was stil
open.

Does anyone know of a way to close Excel from a macro and can the
provide and example?

Thank

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Closing Excel down with a macro?

Try not closing the workbooks before using it.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"andycharger " wrote in message
...
Hi,

I am using ActiveWorkbook.Close to close my spreadsheets but I would
also like to terminate Excel too.

I have tried Application.Quit but this did nothing and Excel was still
open.

Does anyone know of a way to close Excel from a macro and can they
provide and example?

Thanks


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Closing Excel down with a macro?

this works for me to save all and close. Modify to suit.
Sub CLOSE_ALL()
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In Workbooks
w.Save
Next
Application.Quit
End Sub

--
Don Guillett
SalesAid Software

"andycharger " wrote in message
...
Hi,

I am using ActiveWorkbook.Close to close my spreadsheets but I would
also like to terminate Excel too.

I have tried Application.Quit but this did nothing and Excel was still
open.

Does anyone know of a way to close Excel from a macro and can they
provide and example?

Thanks


---
Message posted from
http://www.ExcelForum.com/



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
Checking Column Status on closing excel - Macro Needed Pankaj Excel Discussion (Misc queries) 2 September 4th 09 10:32 PM
Closing Excel with Personal Macro Workbook [email protected] Excel Discussion (Misc queries) 6 November 7th 07 11:07 PM
CLosing Excel 2007 with personal macro workbook Kato Wilbur Excel Discussion (Misc queries) 3 March 13th 07 09:59 PM
closing excel after closing a workbook CWalsh[_2_] Excel Programming 3 January 21st 04 03:33 PM
Problem in closing Excel App with translated excel macro Dasharathi K Excel Programming 0 September 19th 03 08:35 AM


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