Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Prompting user before saving
besmart,
Try something lik this in your code. Dim Msg, Style, Title, Help, Ctxt, Response, MyString Msg = "Are sure you want to do End of Day ?" ' Define message. Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define Response = MsgBox(Msg, Style, Title, Help, Ctxt) If Response = vbNo Then Exit Sub End If If user chose "Yes" then in your code try, ActiveWorkbook.Save ActiveWorkbook.Close HTH Charle -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Prompting user to enable a link | Excel Discussion (Misc queries) | |||
User has intermittent errors while saving. | Excel Discussion (Misc queries) | |||
User has intermittent errors while saving | Excel Discussion (Misc queries) | |||
Saving : Changed by another user | Excel Discussion (Misc queries) | |||
Saving a Workbook: Forcing User to Rename before Saving | Excel Programming |