Option Explicit Sub CompName() MsgBox (Application.UserName) MsgBox (Environ("username")) MsgBox (Environ("computername")) End Sub