Export (0) Print
Expand All

Name Property

Office 2003

Returns a String that represents the name assigned to the specified object. Read-only String.

expression.Name

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The name of a file or folder is usually the last part of the URL. For example, if you have a URL of "C:\My Web Sites\Adventure Works\index.htm", the value of the Name property for the file is "index.htm". Similarly, "Images" is the value of the Name property for the folder in the URL "C:\My Web Sites\Adventure Works\Images".

Example

The following statement returns the application name with AppName as the string variable.

AppName = Application.Name
		




Show:
© 2014 Microsoft