2

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

vbDefaultButton4

which will make the fourth 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?

Lance Roberts
  • 22,383
  • 32
  • 112
  • 130

2 Answers2

3

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.

Traveling Tech Guy
  • 27,194
  • 23
  • 111
  • 159
2

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

Guffa
  • 687,336
  • 108
  • 737
  • 1,005