msgbox coding

J

Junior

how can i modify the following to have the 'No' button in the messagebox as
the default button?

intAns = MsgBox("Are you finished?" _
, vbYesNo + vbQuestion, " Reminder")
If intAns = vbYes Then
 
J

Jeff Conrad

Try:

intAns = MsgBox("Are you finished?" _
, vbYesNo + vbQuestion + vbDefaultButton2, " Reminder")
If intAns = vbYes Then
 
J

Junior

Jeff thanks
Jeff Conrad said:
Try:

intAns = MsgBox("Are you finished?" _
, vbYesNo + vbQuestion + vbDefaultButton2, " Reminder")
If intAns = vbYes Then
 

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