Thread
:
Message box & close worksheet
View Single Post
#
4
Posted to microsoft.public.excel.programming
Snake Plissken[_2_]
external usenet poster
Posts: 75
Message box & close worksheet
try this:
Private Sub CommandButton1_Click()
Dim response
response = MsgBox("Do you wish to order another item?", vbYesNo)
If response = vbYes Then
TextBox3.SetFocus
exit sub
Else
ThisWorkbook.Close True
End If
End Sub
Reply With Quote
Snake Plissken[_2_]
View Public Profile
Find all posts by Snake Plissken[_2_]