Hidden property as it applies to the Style object.
True if the font is formatted as hidden text. Read/write Boolean.
expression.Hidden
expression Required. An expression that returns one of the above objects.
Hidden property as it applies to the Font object.
True if the font is formatted as hidden text. Returns True, False or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Long.
expression.Hidden
expression Required. An expression that returns one of the above objects.
Remarks
To control the display of hidden text, use the ShowHiddenText property of the View object.
To control whether properties and methods that return Range objects include or exclude hidden text when hidden text isn't displayed, use the IncludeHiddenText property of the TextRetrievalMode object.
Example
As it applies to the Font object.
This example checks the selection for hidden text.
If Selection.Type = wdSelectionNormal Then
If Selection.Font.Hidden = wdUndefined or _
Selection.Font.Hidden = True Then
MsgBox "There's hidden text in the selection."
Else
MsgBox "No hidden text in the selection."
End If
Else
MsgBox "You need to select some text."
End If
This example makes all hidden text in the active window visible and then formats the selection as hidden text.
ActiveDocument.ActiveWindow.View.ShowHiddenText = True
If Selection.Type = wdSelectionNormal Then _
Selection.Font.Hidden = True