Muokkaa

Jaa


Document.Name property (Word)

Returns the name of the specified object. Read-only String.

Syntax

expression.Name

expression Required. A variable that represents a Document object.

Example

This example returns the name of the first bookmark in Hello.doc.

abook = Documents("Hello.doc").Bookmarks(1).Name

See also

Document 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.