MsgBox with Yes/No

  • Thread starter Thread starter Chris Watts
  • Start date Start date
C

Chris Watts

"Answer = MsgBox("Do you want to continue ?", vbYesNo)" displays with the
YES button as the default. Is it possible to have the NO button as the
default?

TIA
Chris
 
Hi,

Try,

Answer = MsgBox("Do you want to continue ?", _
vbYesNo or vbDefaultButton2)

Cheers
Andy
 
Back
Top