Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can the system variables like %HOMEPATH% be used inside of Excel? If so then
how? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- HTH... Jim Thomlinson "John F" wrote: Can the system variables like %HOMEPATH% be used inside of Excel? If so then how? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Got it
"Jim Thomlinson" wrote: 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 -- HTH... Jim Thomlinson "John F" wrote: Can the system variables like %HOMEPATH% be used inside of Excel? If so then how? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I open an Excel file on XP system, saved on a Vista system | Excel Discussion (Misc queries) | |||
System Environment Variables | Excel Discussion (Misc queries) | |||
System Environment Variables | Excel Discussion (Misc queries) | |||
variables inside a formula?? | Excel Programming | |||
System variables | Excel Programming |