PC Review


Reply
Thread Tools Rate Thread

display alerts= false not working

 
 
=?Utf-8?B?ZXppbA==?=
Guest
Posts: n/a
 
      11th Jun 2007
Display alerts = false is not working suddenly. Previously when I use in
macros it was working. So I tried following example then also it gives the
alert message
"save changes yes or no?" e.g 2 also gives alert message

Example
This example closes the workbook Book1.xls and doesn’t prompt the user to
save changes. Any changes to Book1.xls aren’t saved.

Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True

eg:2 Workbooks("BOOK1.XLS").Close SaveChanges:=False
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      11th Jun 2007
Hi Ezil.



Workbooks("BOOK1.XLS").Close _
SaveChanges:=True

Should save any chnages and close the workbook
without any message


Similarly

Workbooks("BOOK1.XLS").Close _
SaveChanges:=False

should close the workbook without saving any changes
and without any alert message.

Alternatively,

Application.DisplayAlerts = False
Workbooks("Book2").Close
Application.DisplayAlerts = True

would also close the workbook without saving any c
hanges and without any warning.

Are you saying that your experience is different?


---
Regards,
Norman


"ezil" <(E-Mail Removed)> wrote in message
news:64A3D357-48B1-47EE-B815-(E-Mail Removed)...
> Display alerts = false is not working suddenly. Previously when I use in
> macros it was working. So I tried following example then also it gives the
> alert message
> "save changes yes or no?" e.g 2 also gives alert message
>
> Example
> This example closes the workbook Book1.xls and doesn't prompt the user to
> save changes. Any changes to Book1.xls aren't saved.
>
> Application.DisplayAlerts = False
> Workbooks("BOOK1.XLS").Close
> Application.DisplayAlerts = True
>
> eg:2 Workbooks("BOOK1.XLS").Close SaveChanges:=False



 
Reply With Quote
 
=?Utf-8?B?ZXppbA==?=
Guest
Posts: n/a
 
      17th Jun 2007
It is true that my experience is different. However I solved the problem.
This message may be useful for someone who may encounter same problem like
me. What I did is, I removed internet explorer from my system and again I
reinstalled. Then the problem became o.k. IE seem to be corrupted.

"Norman Jones" wrote:

> Hi Ezil.
>
>
>
> Workbooks("BOOK1.XLS").Close _
> SaveChanges:=True
>
> Should save any chnages and close the workbook
> without any message
>
>
> Similarly
>
> Workbooks("BOOK1.XLS").Close _
> SaveChanges:=False
>
> should close the workbook without saving any changes
> and without any alert message.
>
> Alternatively,
>
> Application.DisplayAlerts = False
> Workbooks("Book2").Close
> Application.DisplayAlerts = True
>
> would also close the workbook without saving any c
> hanges and without any warning.
>
> Are you saying that your experience is different?
>
>
> ---
> Regards,
> Norman
>
>
> "ezil" <(E-Mail Removed)> wrote in message
> news:64A3D357-48B1-47EE-B815-(E-Mail Removed)...
> > Display alerts = false is not working suddenly. Previously when I use in
> > macros it was working. So I tried following example then also it gives the
> > alert message
> > "save changes yes or no?" e.g 2 also gives alert message
> >
> > Example
> > This example closes the workbook Book1.xls and doesn't prompt the user to
> > save changes. Any changes to Book1.xls aren't saved.
> >
> > Application.DisplayAlerts = False
> > Workbooks("BOOK1.XLS").Close
> > Application.DisplayAlerts = True
> >
> > eg:2 Workbooks("BOOK1.XLS").Close SaveChanges:=False

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application.DisplayAlerts = False does not disable alerts Derek Dowle Microsoft Excel Programming 2 9th Dec 2009 05:10 PM
Display Alerts scrabtree23 Microsoft Excel Programming 4 12th Aug 2008 06:46 PM
VBA always creates linked chart even when using PasteExcelTable False, False, False in Office 2007 Matt Simpson Microsoft Excel Programming 0 6th Aug 2007 08:11 PM
Rules & Alerts - Developing an Alerts Web Service that Uses Outlook 2003 Alerts Andrew Denler Microsoft Outlook 0 26th Jan 2005 09:13 PM
F-Prot False Positve Alerts on AVG archive/.exe Rick M. Anti-Virus 3 14th Dec 2004 04:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.