UserName Property Example

This example displays the name of the current user.

MsgBox "Current user is " & Application.UserName