Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UserName Property
Collapse the table of content
Expand the table of content

Application.UserName Property (Excel)

Returns or sets the name of the current user. Read/write String.

expression .UserName

expression A variable that represents an Application object.

This example displays the name of the current user.

MsgBox "Current user is " & Application.UserName
© 2015 Microsoft