ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Impossible to close excel without saving message in internet explorer (https://www.excelbanter.com/excel-programming/396318-impossible-close-excel-without-saving-message-internet-explorer.html)

tinftinf

Impossible to close excel without saving message in internet explorer
 
Hello
Does someone knows how prevent the dialogue box for saving when I leave
an excel sheet opened in internet explorer ?
The use of "ThisWorkbook.Saved = True" in the event "Before_close" has
no effect with internet explorer

Thanks

JLGWhiz

Impossible to close excel without saving message in internet explo
 
Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True


"tinftinf" wrote:

Hello
Does someone knows how prevent the dialogue box for saving when I leave
an excel sheet opened in internet explorer ?
The use of "ThisWorkbook.Saved = True" in the event "Before_close" has
no effect with internet explorer

Thanks


tinftinf

Impossible to close excel without saving message in internetexplo
 
JLGWhiz a écrit :
Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True


"tinftinf" wrote:

Hello
Does someone knows how prevent the dialogue box for saving when I leave
an excel sheet opened in internet explorer ?
The use of "ThisWorkbook.Saved = True" in the event "Before_close" has
no effect with internet explorer

Thanks

Thank you for the input but it isn't efficious : IE ask for saving
before the event VBA 'before_close'


All times are GMT +1. The time now is 11:49 AM.

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