Axis.MajorGridlines (Excel)

Returns a Gridlines object that represents the major gridlines for the specified axis. Only axes in the primary axis group can have gridlines.


Dim grdsMajorGridlines As Gridlines
Set grdsMajorGridlines = ActiveChart.Axes(1).MajorGridlines