Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Application.Close

Hi,

I have this simple bit of code in my close macro

ActiveWorkbook.Save
Application.Quit

When this runs it comes up with the "Do you want to save changes" dialog box
when i've already saved it automatically.

Is there anyway of getting rid of the Dialog Box?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Application.Close

Try this//

ActiveWorkbook.Close Savechanges:=True
Application.Quit

If this post helps click Yes
---------------
Jacob Skaria


"N1KO" wrote:

Hi,

I have this simple bit of code in my close macro

ActiveWorkbook.Save
Application.Quit

When this runs it comes up with the "Do you want to save changes" dialog box
when i've already saved it automatically.

Is there anyway of getting rid of the Dialog Box?

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Application.Close

You might also consider using

ThisWorkBook.Save SaveChanges:=True

Ensuring the workbook being saved is the one with the code.
--

Regards,
Nigel




"N1KO" wrote in message
...
Hi,

I have this simple bit of code in my close macro

ActiveWorkbook.Save
Application.Quit

When this runs it comes up with the "Do you want to save changes" dialog
box
when i've already saved it automatically.

Is there anyway of getting rid of the Dialog Box?

Thanks in advance


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
Application.Quit Does not Close the Application [email protected] Excel Programming 6 October 8th 09 10:32 PM
Before Close Event Hide all Worksheets then Close Application RyanH Excel Programming 0 January 24th 08 03:15 PM
difference application.quit & application.close Pierre via OfficeKB.com[_2_] Excel Programming 4 November 8th 05 07:55 PM
Close the other application Lulu Excel Programming 1 December 16th 04 05:43 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM


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

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"