Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]() I need to somehow get excel to "popup" a confirmation window when the user attempts to close out. The message would be something along the lines of "Is this the correct product?". If yes, excel would exit, if not, then no. I would really appreciate anyone who has the time/patience to assist me with this. Thank you! Chandra -- chanwando ------------------------------------------------------------------------ chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123 View this thread: http://www.excelforum.com/showthread...hreadid=466362 |
#2
![]() |
|||
|
|||
![]()
Chandra,
Put the following code in the ThisWorkbook code module: Private Sub Workbook_BeforeClose(Cancel As Boolean) If MsgBox("Is this correct?", vbYesNo) = vbNo Then Cancel = True End If End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "chanwando" wrote in message ... I need to somehow get excel to "popup" a confirmation window when the user attempts to close out. The message would be something along the lines of "Is this the correct product?". If yes, excel would exit, if not, then no. I would really appreciate anyone who has the time/patience to assist me with this. Thank you! Chandra -- chanwando ------------------------------------------------------------------------ chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123 View this thread: http://www.excelforum.com/showthread...hreadid=466362 |
#3
![]() |
|||
|
|||
![]() Thanks Chip! I really appreciate the help on this one! Have a GREAT day! Chandra -- chanwando ------------------------------------------------------------------------ chanwando's Profile: http://www.excelforum.com/member.php...o&userid=27123 View this thread: http://www.excelforum.com/showthread...hreadid=466362 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check box and and formula | Excel Discussion (Misc queries) | |||
Excel Error Message | Excel Worksheet Functions | |||
Calculations And Order In Macros | Excel Discussion (Misc queries) | |||
when opening excel I receive a message that says file can't be fo. | Excel Discussion (Misc queries) | |||
changing the message in an error message | Excel Worksheet Functions |