View.ShowXMLMarkup Property

Word Developer Reference

Returns a Long that represents whether XML tags are visible in a document.

Syntax

expression.ShowXMLMarkup

expression   An expression that returns a View object.

Remarks

True indicates that tags are visible. False indicates that tags are hidden. wdToggle allows you to switch between showing and hiding the XML markup.

Example

The following example switches between showing and hiding the XML markup in the active document.

Visual Basic for Applications
  ActiveDocument.ActiveWindow.View.ShowXMLMarkup = wdToggle

See Also