Name Property
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
Applies to | Application Object | BasicList Object | Discussion Object | DocumentLibrary Object | List Object | ListField Object | ListFieldAttachments Object | ListFieldChoice Object | ListFieldComputed Object | ListFieldCounter Object | ListFieldCurrency Object | ListFieldDateTime Object | ListFieldFile Object | ListFieldInteger Object | ListFieldLookup Object | ListFieldMultiLine Object | ListFieldNumber Object | ListFieldRatingScale Object | ListFieldSingleLine Object | ListFieldTrueFalse Object | ListFieldURL Object | Survey Object | Theme Object | WebFile Object | WebFolder Object