GetEnviron

Returns a string for the specified Windows system environment variable.


Syntax

App.GetEnviron(EnvString)


Parameters


EnvString

String, input



The system environment variable name.

Remarks

Use the SET command from a Windows command prompt to display a list of available system environment variables.


Example

Sub Main()

MsgBox App.GetEnviron("USERPROFILE")

End Sub