get domain name

The Environ function is the way to go. For a quick test try these...

MsgBox Environ("UserDomain")
MsgBox Environ("UserName")
MsgBox Environ("ComputerName")

Check out this thread for a function that will list all Environ variables your computers operating system will provide... Get Current User Name and Computer Name
 

Users who are viewing this thread

Back
Top Bottom