Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Kevin Smith wrote...
You can use Environ("UserName"). Change you code from ... Workbooks.Open Filename:= _ * * * * "C:\Documents and Settings\ksmit40\Desktop\IDCplan.xls" To... Workbooks.Open Filename:= _ * * * * "C:\Documents and Settings\" & _ Environ("UserName") & "\Desktop\IDCplan.xls" .... Better to use Environ("USERPROFILE") which gives the full profile directory path and won't need to be changed when/if OP's users upgrade to Windows Vista or 7 where profiles are stored under C:\Users rather than C:\Documents and Settings. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
File path | Excel Discussion (Misc queries) | |||
Variabilize File Path or File Name in SumProduct (and Vlookup too) | Excel Worksheet Functions | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
file path | Excel Discussion (Misc queries) | |||
Excel updating from XML file - file path specific? | Excel Discussion (Misc queries) |