ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Prompting user before saving (https://www.excelbanter.com/excel-programming/297873-re-prompting-user-before-saving.html)

Simon Lloyd[_447_]

Prompting user before saving
 
Well it seems quite straight forward as you dont want to allow the use
another option other than ok but i suggest you use Msgbox Msgentr
"YOUR TEXT",vbokcancel,"TITLE OF BOX HERE" stick it all in a
auto_close and add the line ThisWorkbook.Close savechanges:=True (thi
closes the workbook that is running the code)

Of course you will have to specify what either ok or cancel will d
when clicked i.e if msgbox=6 then blah!

HTH

Simo

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 12:52 AM.

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