ShowMajorGridLines Property
ShowMajorGridLines returns or sets the show major grid lines state. It has a Boolean value. When it is set to 'True', the major grid lines are displayed. If it is set to 'False', the major grid lines are hidden.
Syntax
object.ShowMajorGridLines
object.ShowMajorGridLines = Show
Parameter |
Type |
Description |
Show |
Boolean |
required |
Example 1
This example demonstrates how to return whether or not major grid lines perpendicular to an axis are displayed.
Debug.Print Axis.ShowMajorGridLines
Example 2
This example demonstrates how to display major grid lines perpendicular to an axis.
Axis.ShowMajorGridLines = True
Used by: Axis object