Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default DisplayAlerts property is not changing to False


Hello All:

My excel application neglects to chenge the propert
Application.DisplayAlerts to false.
Here is the code:

Application.DisplayAlerts = False
Application.Quit

When I step through the code and check the displayalerts property it i
set to true.

I have been reading other entries and can not seem to find a definit
problem/resolution (not to mention no particular help from Microsoft).

I have tried the
"workbooks(name.xls).close SaveChanges:=False"
(changes are not to be saved) method but this throws an exception whe
I try to quit.

Any thoughts?

Thanks,

Mik

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default DisplayAlerts property is not changing to False

Mike,

You may want to try using the saved property of the
Workbook Object. For example:

ThisWorkbook.Saved = True
Application.Quit

If you have more than one workbook open and you want all
of them closed without saving any of them, try:

Dim wkBooks
Dim wkBook

Set wkBooks = Application.Workbooks

For Each wkBook In wkBooks
wkBook.Saved = True
wkBook.Close
Next wkBook
Application.Quit

Hopefully that helps.

Michael
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
Manually changing a picture (shape) name property ker_01 Excel Discussion (Misc queries) 4 April 3rd 23 07:01 PM
changing an activex control property using a macro Sian Excel Discussion (Misc queries) 1 January 11th 08 11:56 AM
changing property of a picture that is already pasted on excel cc New Users to Excel 0 June 27th 06 05:04 AM
DisplayAlerts and ScreenUpdate will not set to False Joe at Baso New Users to Excel 1 April 5th 05 07:41 PM
EnableEvents and DisplayAlerts problems Derek Gadd Excel Programming 3 November 4th 03 01:35 PM


All times are GMT +1. The time now is 11:00 PM.

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"