MinorGridlines property (Excel Graph)

Returns a Gridlines object that represents the minor gridlines for the specified axis. Only axes in the primary axis group can have gridlines. Read-only.

Syntax

expression.MinorGridlines

expression An expression that returns a Gridlines object.

Example

This example sets the color of the minor gridlines for the value axis in the chart to blue.

With myChart.Axes(xlValue) 
 If .HasMinorGridlines Then 
 .MinorGridlines.Border.ColorIndex = 5 
 End If 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.