Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Message box & close worksheet
Code bolow doesn't close the worksheet when 'no' is chosen rather than yes.
Any ideas? Private Sub CommandButton1_Click() MsgBox("Do you wish to order another item?", _ vbYesNo) If response = vbYes Then If vbYes Then TextBox3.SetFocus Else ThisWorkbook.Close True End If End If End Sub -- tia Jock |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Close Message box after 3 seconds | Excel Programming | |||
Automatically close a message box | Excel Programming | |||
Warning message on file close | Excel Worksheet Functions | |||
Force a Message Box to close unanswered | Excel Programming | |||
Close a message box | Excel Programming |