ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   messagebox without default button (https://www.excelbanter.com/excel-programming/317474-messagebox-without-default-button.html)

Peter Janssens

messagebox without default button
 
Hi,

Is it possible to create a messagebox without a default button?

For example: MsgBox "hallo", vbOKCancel + vbDefaultButton2 makes the
Cancel-button default. I would like to have that none of the two buttons are
default. The user has to click on it (not by pressing Enter).

Thanks.
Peter








Dave Peterson[_5_]

messagebox without default button
 
Maybe just a small userform would be in order.

(I couldn't remove the default from all of the buttons.)

Peter Janssens wrote:

Hi,

Is it possible to create a messagebox without a default button?

For example: MsgBox "hallo", vbOKCancel + vbDefaultButton2 makes the
Cancel-button default. I would like to have that none of the two buttons are
default. The user has to click on it (not by pressing Enter).

Thanks.
Peter


--

Dave Peterson


All times are GMT +1. The time now is 06:38 AM.

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