Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
My "CurDir" does not work. I have: Dim File_path As String File_path = CurDir("") Instead of showing my current directory (where the workbook I currently have open lies), is it showing the directory of previously opened file, i.e. the top file in the quick access list of files that can be found in the menu/files. Please help, |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want the path in which the workbook exists, use Thisworkbook.Path.
-- Ray at work Microsoft ASP/ASP.NET MVP "Jim73" wrote in message ... Hi, My "CurDir" does not work. I have: Dim File_path As String File_path = CurDir("") Instead of showing my current directory (where the workbook I currently have open lies), is it showing the directory of previously opened file, i.e. the top file in the quick access list of files that can be found in the menu/files. Please help, |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
or activeworkbook.path
Jim73 wrote: Hi, My "CurDir" does not work. I have: Dim File_path As String File_path = CurDir("") Instead of showing my current directory (where the workbook I currently have open lies), is it showing the directory of previously opened file, i.e. the top file in the quick access list of files that can be found in the menu/files. Please help, -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanx
"Dave Peterson" wrote: or activeworkbook.path Jim73 wrote: Hi, My "CurDir" does not work. I have: Dim File_path As String File_path = CurDir("") Instead of showing my current directory (where the workbook I currently have open lies), is it showing the directory of previously opened file, i.e. the top file in the quick access list of files that can be found in the menu/files. Please help, -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can i automatically generate work order numbers from work orde | Excel Discussion (Misc queries) | |||
Counting dates in multiple work sheets and work books | Excel Discussion (Misc queries) | |||
Is there away to keep "auto save" from jumping to the first work sheet in the work book? | New Users to Excel | |||
CurDir | Excel Programming | |||
Excel 97 VBA - CURDIR, not reliable | Excel Programming |