LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Macro to close Excel 2007

How do I close out of Excel completely? I've tried this:
Sub Macro1()
'
' Macro1 Macro
' Save and close workbook
'
ActiveWorkbook.Save
ActiveWorkbook.Close

this only closes the active workbook and I need to close Excel completely.

thanks
 
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
Excel 2007 cannot close DeltaOne Excel Discussion (Misc queries) 0 August 20th 08 05:06 PM
Excel 2007 doesnt close gb4 Excel Discussion (Misc queries) 2 April 10th 08 07:49 PM
Excel 2007 very slow to open or close John Excel Discussion (Misc queries) 3 March 23rd 08 12:21 AM
Excel 2007 Close problem Duane Nutley Excel Discussion (Misc queries) 4 October 4th 07 12:58 AM
Close All in excel 2007 Anita Excel Discussion (Misc queries) 1 February 9th 07 09:22 PM


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