Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default display alerts= false not working

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 doesnt prompt the user to
save changes. Any changes to Book1.xls arent saved.

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

eg:2 Workbooks("BOOK1.XLS").Close SaveChanges:=False
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default display alerts= false not working

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" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default display alerts= false not working

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" wrote in message
...
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
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
Display Alerts MarkN Excel Discussion (Misc queries) 0 June 8th 06 03:13 AM
Display Alerts BEEJAY Excel Programming 1 May 11th 06 08:56 PM
Display alerts ewan7279 Excel Programming 4 April 26th 06 01:44 PM
Display Alerts Jason Zischke Excel Programming 1 March 7th 06 07:31 AM
Display Alerts Valerie[_2_] Excel Programming 1 September 8th 03 09:43 PM


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