Access Environment Variable is VBA Call the Environ function with the name of the environment variable.1 Environ("USERPROFILE") Returns: C:\Users\<username> The environment variable can also be accessed by index number instead of by name. Footnotes Microsoft Docs on the Environ function here ↩