MsgBox with Yes/No

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
 
A

Andy Pope

Hi,

Try,

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

Cheers
Andy
 
Top