Selection.Document 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 Document object associated with the specified selection. Read-only.

expression .Document

expression A variable that represents a Selection object.

This example displays the document name and path for the selection.

Msgbox Selection.Document.FullName
© 2016 Microsoft