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
 

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