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

Msgbox buttons

Status
Not open for further replies.

PB90

Technical User
Jul 11, 2005
65
0
0
US
I want to use a msgbox to display a "Yes" & "No" button. If "Yes" is pressed I want to perform fnct1. If no is pressed I just want to cancel/clear the msg box.
Can I do this? & how would I indicate the function to perform on "Yes" selection?
 
if msgbox("is it yes or no?",vbYesNo + vbQuestion, "A question") = vbyes then
x = funct1()
else
' do nothing
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top