If MsgBox("Did you do it? ", vbQuestion + vbYesNo, "Swati") = vbYes Then
'something
Else
'something else
End If
--
Jim Cone
San Francisco, USA http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)
"swati" <[email protected]>
wrote in message
Hi,
How can I create a pop up box that asks a question and then takes answers in
yes/no?
Sub popUp()
PopUp = MsgBox("WILL THIS DO THE TRICK?", vbYesNo + vbQuestion, "MY POP-UP")
If PopUp = vbYes Then
MsgBox "That's It"
Else
MsgBox "Not What I wanted"
End If
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.