开发者

MsgBox function default fourth button

开发者 https://www.devze.com 2022-12-19 09:27 出处:网络
I noticed in VBA that the MsgBox function has a allowable constant of vbDefaultButton4 which will make the fo开发者_如何转开发urth button the default.

I noticed in VBA that the MsgBox function has a allowable constant of

vbDefaultButton4

which will make the fo开发者_如何转开发urth button the default. BUT of all the allowable constants for buttons, none give you four buttons.

Is there a way to get a fourth button on a MsgBox, or is this useless, or something else?


If I recall, you can use vbMsgBoxHelpButton to add a Help button to your message box. That, combined with a 3-button dialog, would yield 4 buttons. You then use vbDefaultButton4 to make Help the default button.


If you use vbMsgBoxHelpButton in combination with an option that gives three buttons, there are four buttons.

0

精彩评论

暂无评论...
验证码 换一张
取 消