Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Application.Quit Does not Close the Application | Excel Programming | |||
Before Close Event Hide all Worksheets then Close Application | Excel Programming | |||
difference application.quit & application.close | Excel Programming | |||
Close the other application | Excel Programming | |||
macro to close excel application other than application.quit | Excel Programming |