ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Message box before save (https://www.excelbanter.com/excel-programming/325443-message-box-before-save.html)

Chance224

Message box before save
 
Is there a way to program a message box to appear if someone tries to save a
file when a certian cells value is zero?

Tom Ogilvy

Message box before save
 
Use the beforeSave event. In the event check for the condition that would
warrant showing the message box. In the event, to cancel the save, set

Cancel = True

See Chip Pearson's page on events
http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Chance224" wrote in message
...
Is there a way to program a message box to appear if someone tries to save

a
file when a certian cells value is zero?





All times are GMT +1. The time now is 07:34 AM.

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