You can write your own User Defined Functions that you can use in Excel. For
example place this code in a standard code module
public function HomePath() as string
HomePath = thisworkbook.path
end function
In any cell type =HomePath()
You can also use environ to get system data
public function LoginName() as string
LoginName = environ("UserName")
end function

Signature
HTH...
Jim Thomlinson
> Can the system variables like %HOMEPATH% be used inside of Excel? If so then
> how?
John F - 31 Mar 2006 23:13 GMT
Thanks Got it
> You can write your own User Defined Functions that you can use in Excel. For
> example place this code in a standard code module
[quoted text clipped - 13 lines]
> > Can the system variables like %HOMEPATH% be used inside of Excel? If so then
> > how?