English

How To: Read an environment variable using VBA

Summary

This article shows how to get the value for an environment variable into an ArcMap VBA project.

Procedure

Use the Environ function to return the string associated with the specified environment variable. For example:

Code:
MsgBox Environ("ARCHOME")