Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Environ variables

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
Where can I get a complete listing of all the Environ variables that can be used in VBA?
 
Open a console window and type set

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks, I was really hoping that MS had one for like full name or display name. Guess UserName will have to work.

Chris
 
Another (VBA) way:
i = 1
Do
EnvString = Environ(i)
If EnvString = "" Then Exit Do
Debug.Print EnvString
i = i + 1
Loop

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top