Applies To
Button Object, Buttons Collection, DrawingObjects Collection.
Description
Applies only to buttons in a user-defined dialog box. If True, then pressing the Help key runs the macro identified by the button's OnAction property. If False, pressing the Help key does nothing. The Help key is F1 in Windows and COMMAND+? on the Macintosh. Read-write.
Remarks
Only one button in the dialog box can have the HelpButton property set to True at any given time; setting the property resets it for all other buttons in the dialog box.
If the user presses the Help key in a dialog box that has no Help button, nothing happens.
See Also
Help Method.
Example
This example displays the name of the Help button in Dialog1.
For Each b In DialogSheets("Dialog1").Buttons If b.HelpButton = True Then MsgBox "Help button is " & b.Name End If Next b