ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   default = vbNo in Msgbox (https://www.excelbanter.com/excel-programming/353556-default-%3D-vbno-msgbox.html)

Alex St-Pierre

default = vbNo in Msgbox
 
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

Bob Phillips[_6_]

default = vbNo in Msgbox
 
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" wrote in message
...
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





All times are GMT +1. The time now is 09:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com