Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a snippet of code attached to a button so that when you click the
button the workbook is emailed to a specified email address. However, I would like to add a confirmation popup before any code is executed. I've gotten as far as: Dim response As Long response = MsgBox(prompt:="Are you sure you would like to submit?", Buttons:=vbOKCancel) When I click OK, the code executes as it should. However, when I click cancel, the code still executes. Can't figure out how to code for cancel. I want it to do nothing, and simply return to the form on which the button is embedded. How do I do this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Input Box Cancel | Excel Discussion (Misc queries) | |||
cancel save | Excel Discussion (Misc queries) | |||
cancel input | Excel Discussion (Misc queries) | |||
can I cancel a save | Excel Discussion (Misc queries) | |||
Read Only - How to Cancel? | Excel Discussion (Misc queries) |