ShowHighlight Property

Microsoft Word Visual Basic

expression.ShowHighlight

expression    Required. An expression that returns a View object.

Example

This example toggles the display of highlighting in the active document.

ActiveDocument.ActiveWindow.View.ShowHighlight = _
    Not ActiveDocument.ActiveWindow.View.ShowHighlight
		

This example prints the active document without highlight formatting.

With ActiveDocument
    .ActiveWindow.View.ShowHighlight = False
    .PrintOut
End With