UserName 属性

       

返回或设置当前用户的名称。String 类型,可读写。

示例

本示例显示当前用户的名称。

MsgBox "Current user is " & Application.UserName