Allows you to turn chart gridlines on and off.
Arguments are logical values corresponding to the check boxes in the Gridlines dialog box. If an argument is TRUE, Microsoft Excel selects the check box; if FALSE, Microsoft Excel clears the check box. If omitted, the setting is not changed. If a chart is not active, produces a error and halts the macro.
Syntax
GRIDLINES(x_major, x_minor, y_major, y_minor, z_major, z_minor, 2D_effect)
GRIDLINES?(x_major, x_minor, y_major, y_minor, z_major, z_minor, 2D_effect)
X_major corresponds to the Category (X) Axis: Major Gridlines check box.
X_minor corresponds to the Category (X) Axis: Minor Gridlines check box.
Y_major corresponds to the Value (Y) Axis: Major Gridlines check box. On 3-D charts, y_major corresponds to the Series (Y) Axis: Major Gridlines check box.
Y_minor corresponds to the Value (Y) Axis: Minor Gridlines check box. On 3-D charts, y_minor corresponds to the Series (Y) Axis: Minor Gridlines check box.
Z_major corresponds to the Value (Z) Axis: Major Gridlines check box (3-D only).
Z_minor corresponds to the Value (Z) Axis: Minor Gridlines check box (3-D only).
2D_effect corresponds to the 2-D Walls and Gridlines check box (3-D only).
Return to index