View.ShowXMLMarkup property (Word)

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.

ActiveDocument.ActiveWindow.View.ShowXMLMarkup = wdToggle

See also

View Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.