UserName Property Example

This example returns the current user's logon name.

myLogonName = Application.UserName