"Dave Peterson" <[email protected]> skrev i melding
news:[email protected]...
> This worked ok for me in WinXP (not sure it works in all versions of

windows).
>
> Option Explicit
> Sub testme01()
> MsgBox Environ("programfiles")
> End Sub


"Environ" is very limited in the Windows 9x family (95, 98, ME), but works
fine in the NT family (NT, 2000, XP). If this is a problem, Randy Birch has
code for this (and almost everything else) at
http://vbnet.mvps.org/code/browse/csidl.htm
it is VB6, so the Form parts has to be adjusted

Best wishes Harald