UserName Application Property in VBA is used to sets or returns the name of the user. Please find the more details about UserName in the following section.

Excel VBA UserName Application Property

VBA UserName Application Property – Syntax

Here syntax for UserName Property of application object in VBA.

Application. UserName

Where UserName as String.
In the above syntax Application represents object and UserName is the Property of Application object.

VBA UserName Application Property: Example 1

Please find the below example for UserName Property of application object in excel VBA. The below example displays the user name of the application.

Sub Appl_UserNamel()
    MsgBox Application.UserName
End Sub

VBA UserName Application Property – Instructions

Please follow the below steps to execute the VBA code to save the excel file.
Step 1: Open any existing Excel Application.
Step 2: Press Alt+F11 – This will open the VBA Editor.
Step 3: Insert a code module from then insert menu.
Step 4: Copy the above code and paste in the code module which have inserted in the above step.
Step 5: Now press F5 to execute the code.

120+ Professional Project Management Templates!
Save Up to 85% LIMITED TIME OFFER

A Powerful & Multi-purpose Templates for project management. Now seamlessly manage your projects, tasks, meetings, presentations, teams, customers, stakeholders and time. This page describes all the amazing new features and options that come with our premium templates.

Browse All Templates
Excel VBA Project Management Templates

All-in-One Pack
120+ Project Management
Premium Templates
View Details

Essential Pack
50+ Project Management
Premium Templates
View Details
50+ Excel
Project Management
Templates Pack
View Details
50+ PowerPoint
Project Management
Templates Pack
View Details
25+ MS Word
Project Management
Templates Pack
View Details
Ultimate Project Management Template
View Details
Ultimate Resource Management Template
View Details
Project Portfolio Management Templates
View Details

Share This Story, Choose Your Platform!

Leave A Comment