Chart.ShowAxisFieldButtons Property (Excel)

Returns or sets whether to display axis field buttons on a PivotChart. Read/write

Version Added: Excel 2010

expression .ShowAxisFieldButtons

expression A variable that represents a Chart object.

Return Value


Set the ShowAxisFieldButtons property to True to display axis field buttons on the specified PivotChart. Set the property to False to hide the buttons.

The ShowAxisFieldButtons property corresponds to the Show Axis Field Buttons command on the Field Buttons drop-down list of the Analyze tab, which is available when a PivotChart is selected.

The following code example sets Chart 1 to hide axis field buttons.

ActiveSheet.ChartObjects("Chart 1").Activate 
ActiveChart.ShowAxisFieldButtons = False