This documentation is archived and is not being maintained.

Document.Name Property

Office 2007
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



Show: