ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel 2003 Workbook Issue (https://www.excelbanter.com/excel-programming/330610-re-excel-2003-workbook-issue.html)

TimZ[_3_]

Excel 2003 Workbook Issue
 

If you use Application.DisplayAlerts = False, don't forget to follow the
code with:

Application.DisplayAlerts = True

Otherwise, Excel will not prompt you to save changes when you close a
worksheet - something that many users rely on.

Tim


--
TimZ
------------------------------------------------------------------------
TimZ's Profile: http://www.excelforum.com/member.php...o&userid=23558
View this thread: http://www.excelforum.com/showthread...hreadid=375545


Bob Phillips[_7_]

Excel 2003 Workbook Issue
 
Tim,

Not disagreeing that it is a good practice, but to quote help
If you set this property to False, Micorosoft Excel sets this property to
True when the code is finished, unless you are running cross process code.

Although clearly that only takes affect at the end of the code.


--
HTH

Bob Phillips

"TimZ" wrote in message
...

If you use Application.DisplayAlerts = False, don't forget to follow the
code with:

Application.DisplayAlerts = True

Otherwise, Excel will not prompt you to save changes when you close a
worksheet - something that many users rely on.

Tim


--
TimZ
------------------------------------------------------------------------
TimZ's Profile:

http://www.excelforum.com/member.php...o&userid=23558
View this thread: http://www.excelforum.com/showthread...hreadid=375545





All times are GMT +1. The time now is 04:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com