ShowAll, ShowAll()

Syntax

ShowAll [On]

ShowAll()

Remarks

The ShowAll statement displays all nonprinting characters, such as hidden text, tab marks, space marks, and paragraph marks. ShowAll corresponds to the All check box on the View tab in the Options dialog box (Tools menu).

Argument

Explanation

On

Specifies whether to hide or display all nonprinting characters:

1 Displays nonprinting characters.

0 (zero) Hides nonprinting characters.

Omitted Toggles the display.


If your macro depends on nonprinting characters being visible in the document, it's a good idea to include ShowAll 1 as one of the first instructions.

The ShowAll() function returns the following values.

Value

Explanation

0 (zero)

The All check box is selected.

–1

The All check box is cleared.


Example

This example displays all nonprinting characters and then searches for hidden text:


ShowAll 1
EditFindClearFormatting
EditFindFont .Hidden = 1
EditFind .Find = "", .Format = 1

See Also

ToolsOptionsView