Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox - vbYes

Status
Not open for further replies.

perlone

Programmer
May 20, 2001
438
0
0
US
how can i make the vbyes button exit the whole program when clicked and the vbno button to hide the messagebox when it's clicked? There is no Knowledge that is not power.
Age: 17
E-mail: projectnet01@yahoo.com
Company:(not done yet) :)
Status: Currently working with C++ for game developing. And making a musical band.
-Aaron
 
Hi,
Try the following code:

If Msgbox("Quit Application?",vbYesNo,"")=vbYes then
Application.Quit
End If Hope it helps. Let me know what happens.
With regards,
PGK
 
Try:
answer=msgbox("Question",vbYesNo)
Now :
if answer=6 it means the user clickes Yes and if answer=7 it means the user clickes No


Behnam2204@yahoo.com
BehnamPro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top