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
 
Back
Top