ShowToolbarButton method (XY Plot object)
Hides or shows toolbar buttons on the XY Plot object. Buttons hidden from the toolbar are also hidden from the shortcut menu.
Syntax
XYPlot1
.ShowToolbarButton
(toolbarButtonID
, state
)where
XYPlot1
- is the name of an XY Plot object or an expression that evaluates to an XY Plot object.toolbarButtonID
- is a parameter of the XYButtonID
constant for the button on the toolbar.state
- is a parameter of the type Boolean that can be set to one of the following:- True: Shows the button on the toolbar at runtime.
- False: Does not show the button on the toolbar at runtime.
Example
Private Sub ShowToolbarButton() 'Hides the Print button on the toolbar at runtime. XYPlot1.ShowToolbarButton PrintButton, False End Sub
Provide Feedback