rep1 = MsgBox("Would you like to add a line?", vbYesNo+vbDefaultButton2)

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Alex St-Pierre" <AlexStPierre@discussions.microsoft.com> wrote in message
news:6AB4778A-A2DD-42B8-B0D7-F70473D09CCF@microsoft.com...
> Hi !
> Does anyone know how to have vbNo button selected by default when the

Msgbox
> open ?
> rep1 = MsgBox("Would you like to add a line?", vbYesNo)
> Thanks !
> --
> Alex St-Pierre