ShowXMLMarkup Property

Microsoft Word Visual Basic

ShowXMLMarkup Property

Returns a Long that represents whether XML tags are viewed in a document. True indicates that tags are visible. False indicates that tags are hidden. wdToggle allows you to switch between showing and hiding the XML markup.

expression.ShowXMLMarkup

expression    Required. An expression that returns a View object.

Example

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

    ActiveDocument.ActiveWindow.View.ShowXMLMarkup = wdToggle