UserName Property Example

This example displays the name of the current user.

MsgBox "Current user is " & Application.UserName

Send feedback to MSDN.Look here for MSDN Online resources.