CurrentUserName Property

Office Web Discussions Client Visual Basic

expression.CurrentUserName

expression    Required. An expression that returns a Global object.

Example

This example displays a message box containing the name of the current Microsoft Office user.

MsgBox "The current Microsoft Office user is " & _
    CurrentUserName