Selection.WordOpenXML Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a String that represents the XML contained within the selection in the Microsoft Word Open XML format. Read-only.

expression .WordOpenXML

expression An expression that returns a Selection object.

This property returns only the XML in the document that is needed to represent the specified selection.