I am looking for some information or code samples for the Environ Function in VBA to grab the username on the current system.
I am looking for some information or code samples for the Environ Function in
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Environ()gets you the value of any environment variable. These can be found by doing the following command in the Command Prompt:If you wanted to get the username, you would do:
If you wanted to get the fully qualified name, you would do:
References