NumGridLines property
Member of XAxis and YAxis objects.
Returns or sets the number of major vertical or horizontal grid lines. Read/write. Long.
The number of major grid lines is limited to 0-30.
Syntax
axis
.NumGridLines
[ = value
]where
axis
- is an XAxis or YAxis object, or an expression that evaluates to an XAxis or YAxis object.value
- is a parameter of the type Long that specifies the number of grid lines to display.Remarks
The NumGridLines property has no effect if the DisplayGridLines property is false.

Set up grid line options on the Trend properties X-Axis and Y-Axis tabs.
Provide Feedback