Type | Description | |||
Button as OutResult | An OutResult expression that indicates the identifier of the button being changed. | |||
String | A string expression that indicates the new button caption. |
The Button property accepts HTML format like follows:
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following sample changes the color for Abort button:
With MsgBox1 .Button(exAbort) = "<fgcolor=FF0000>Abort</fgcolor>" .Out "This is the message box's prompt", OutStyle.exAbortRetryIgnore End With