Name Property [Document]

The Name property returns the name of the document not including the path. The document title is returned if the file has not been saved yet, e.g., "Plot1". This is a read-only property. Returns a String. This is the default property for the Document object.

Syntax

object.Name

Remarks

Use FullName to return the path and file name.

Example

This example demonstrates how to return the file name of a document.

Debug.Print Plot.Name

 

Used by: Document object