HasMinorGridlines Property
Applies To
Axis object.
Description
True if the axis has minor gridlines. Only axes in the primary axis group can have gridlines. Read/write Boolean.
See Also
AxisGroup property, HasMajorGridlines property, MajorGridlines property, MinorGridlines property.
Example
This example sets the color of the minor gridlines for the value axis in Chart1.
With Charts("Chart1").Axes(xlValue)
If .HasMinorGridlines Then
.MinorGridlines.Border.ColorIndex = 4 'Set color to green.
End If
End With