HasMinorGridlines Property
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

HasMinorGridlines Property

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

This example sets the color of the minor gridlines for the value axis.

With myChart.Axes(xlValue) 
 If .HasMinorGridlines Then 
 .MinorGridlines.Border.ColorIndex = 4 
 ' Set color to green. 
 End If 
End With
© 2016 Microsoft