开发者

MsgBox function default fourth button

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜