Axis.MajorGridlines (Word)

Returns the major gridlines for the specified axis.

Only axes in the primary axis group can have gridlines.


With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.Axes(xlValue) 
 If .HasMajorGridlines Then 
 ' Set the color to blue. 
 .MajorGridlines.Border.ColorIndex = 5 
 End If 
 End With 
 End If 
End With