Skip to content

Name


Overview

The Name property of the Application class returns a static string identifying the application.

Syntax

vba
Application.Name

Return Value

Returns a String representing the name of the application.

Example

This example demonstrates how to retrieve and use the Name property:

vba
Sub ApplicationNameExample()
    Dim app As New Application

    ' Retrieve the application name
    Dim appName As String
    appName = app.Name

    ' Display the application name
    Debug.Print "Application Name: " & appName
End Sub