Environ Function

Syntax

Environ[$](Index)
-or-
Environ[$](Name)

Group

Miscellaneous

Description

Return an environment string.

Pocket PC

Not supported.

Sandbox

Sandbox mode blocks this function.

Parameters

Parameters Description
Index Return this environment string's value. If there is no environment string at this index a null string is returned. Indexes start at one.
Name Return this environment string's value. If the environment string can't be found a null string is returned.

Sub Main
    Debug.Print Environ("Path")
End Sub