Selection.XML Property (Word)

Office 2013 and later
GitHub-Mark-64px

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 text in the specified object. .

expression .XML(DataOnly)

expression An expression that returns a Selection object.

Parameters

Name

Required/Optional

Data Type

Description

DataOnly

Optional

Boolean

True returns the text of the XML without the Word XML markup. The default setting is False.

Show: