Syntax

expression.UserName

expression A variable that represents an Application object.

Example

This example displays the name of the current user.

Visual Basic for Applications
MsgBox "Current user is " & Application.UserName
Get hold of the name of the person using the computer? Return the name of the current user? user name User Name Property username username property who is the current user?

See also: