Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
How can I create a pop up box that asks a question and then takes answers in yes/no? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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) "swati" wrote in message ... Hi, How can I create a pop up box that asks a question and then takes answers in yes/no? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Look at the MsgBox function in VBA help... 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" wrote in message Hi, How can I create a pop up box that asks a question and then takes answers in yes/no? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "swati" wrote: Hi, How can I create a pop up box that asks a question and then takes answers in yes/no? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|