ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   turning off unwanted warnings (https://www.excelbanter.com/excel-programming/296520-turning-off-unwanted-warnings.html)

Roland

turning off unwanted warnings
 
Occasionally I get messages/warnings during VBA/macro execution. E.g. a message that I have left a large amount of data asking if I want to save this data for other programs. These messages/warnings interrupt the VBA until I respond to them. Is there a way to turn off these types of messages


Peter Atherton[_3_]

turning off unwanted warnings
 

-----Original Message-----
Occasionally I get messages/warnings during VBA/macro

execution. E.g. a message that I have left a large amount
of data asking if I want to save this data for other
programs. These messages/warnings interrupt the VBA until
I respond to them. Is there a way to turn off these types
of messages?

Roland

Try

Application.displayAlerts = False
and On error resume next

Regards
Peter


All times are GMT +1. The time now is 12:40 PM.

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