msgbox coding

  • Thread starter Thread starter Junior
  • Start date Start date
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
 
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

Similar Threads

VbButtons 4
Dsum() works sometimes 2
Forms interaction 3
Before update event 2
Question on frames and msgbox 4
Outlook and Form Issue 3
Setting appointment label 1
Excel Message box with days of month & date. 1

Back
Top