Syntax

expression.HasMinorGridlines

expression A variable that represents an Axis object.

Example

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

Visual Basic for Applications
With Charts("Chart1").Axes(xlValue) If .HasMinorGridlines Then .MinorGridlines.Border.ColorIndex = 4 'set color to green End If End With
has minor gridlines Has Minor Gridlines Property hasminor HasMinorGridline HasMinorGridline Property hasminorgridlines hasminorgridlines property Show secondary gridlines on chart? Turn on gridlines between main gridlines?

See also: