TableGridlines, TableGridlines()

Syntax

TableGridlines [On]

TableGridlines()

Remarks

The TableGridlines statement displays or hides table gridlines.

Argument

Explanation

On

Specifies whether to display or hide table gridlines:

0 (zero) Hides table gridlines.

1 Displays table gridlines.

Omitted Toggles the option on or off.


The TableGridlines() function returns the following values.

Value

Explanation

0 (zero)

If table gridlines are hidden

–1

If table gridlines are displayed


Example

This example displays table gridlines if they are not already showing. You could use this instruction as part of an AutoOpen macro, so that whenever documents based on a certain template are opened, table gridlines are displayed.


If Not TableGridlines() Then TableGridlines 1

See Also

ToolsOptionsView