Document.Name Property

Word Developer Reference

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.

Visual Basic for Applications
  abook = Documents("Hello.doc").Bookmarks(1).Name

See Also