Strikethrough, Strikethrough()

Syntax

Strikethrough [On]

Strikethrough()

Remarks

The Strikethrough statement adds or removes the strikethrough character format for the current selection, or controls strikethrough formatting for characters to be inserted at the insertion point.

Argument

Explanation

On

Specifies whether to add or remove the strikethrough format:

1 Formats the selection as strikethrough.

0 (zero) Removes the strikethrough format.

Omitted Toggles the strikethrough format.


The Strikethrough() function returns the following values.

Value

Explanation

0 (zero)

If none of the selection is formatted as strikethrough

–1

If part of the selection is formatted as strikethrough

1

If all the selection is formatted as strikethrough


When revision marking is activated, Word uses strikethrough to mark deleted text. However, Word does not recognize text formatted with the Strikethrough statement as deleted. If you want to mark the selected text as deleted for the purpose of revision marks, use the following instructions:


ToolsRevisions .MarkRevisions = 1
EditClear

See Also

FormatFont, ToolsRevisions