pop up box

G

Guest

Hi,
How can I create a pop up box that asks a question and then takes answers in
yes/no?
 
B

Bob Phillips

ans = MsgBox ("Continue (yes) or quit (no)?",vbYesNo)
If ans = vbYes Then
'etc.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
G

Guest

Probably the quickest is the MsgBox.

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.

Ask a Question

Top