MajorGridlines Property Example

This example sets the color and line weight for the major gridlines on the specified axis.

Set c = ChartSpace1.Constants
Set mg = ChartSpace1.Charts(0).Axes(c.chAxisPositionLeft).MajorGridlines
mg.Line.Color = "white"
mg.Line.Weight = 5