Link to home
Start Free TrialLog in
Avatar of brothertruffle880
brothertruffle880Flag for United States of America

asked on

Excel VBA - Understanding and Using the "Environment"

Aside from username, which other environment items can I display using the following:

I'm asking because I just want to see what environ can do for me.


Sub test()

MsgBox "hello " & Environ("username"), vbOKOnly, "Have a Great Day"

End Sub
ASKER CERTIFIED SOLUTION
Avatar of Daniel Pineault
Daniel Pineault

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brothertruffle880

ASKER

Thanks so much for the detailed list. I'm demonstrating the environment variables in VBA and your list was helpful.  How did you obtain the list.  I did a HELP search and couldn't find the listing you provided.
Avatar of Daniel Pineault
Daniel Pineault

I simply used the function I included in my reply.  It generated the listing based on my PC's environment variables.