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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with vbyesno 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Can anyone tell me the code for the msgbox vbyesno to appear and to do a different action on when the user clicks yes or no

Thanks
Paul
 
Dim iResp as Integer

iResp = MsgBox("Message", vbYesNo, "Title")

If iResp = vbYes Then
......
Else 'iResp = vbNo
......
End If

HTH,
JC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top