Document.Name property (Word)
Returns the name of the specified object. Read-only String.
expression Required. A variable that represents a Document object.
This example returns the name of the first bookmark in Hello.doc.
abook = Documents("Hello.doc").Bookmarks(1).Name
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.