UserName Property

Applies To

Application Object.

Description

Returns or sets the name of the current user (as a string). Read-write.

Example

This example displays the current user name.


MsgBox "Current user is " & Application.UserName