Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Axis.HasMinorGridlines Property (Excel)

True if the axis has minor gridlines. Only axes in the primary axis group can have gridlines. Read/write Boolean.

expression .HasMinorGridlines

expression A variable that represents an Axis object.

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

Concepts

Other resources

Show:
© 2015 Microsoft