Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Worked Swimmingly, Thank You!
-plh In article , Dave Peterson says... Make sure you change the drive, too: Dim myFolder as string myFolder = "G:\MULTUS\PROVEOUT\" ChDrive myFolder ChDir myfolder plh wrote: Hello X-L Gurus! I am using the GetOpenFileName method and I would like to have it open into a predetermined folder. I wrote the code as follows: ChDir "G:\MULTUS\PROVEOUT\" strCurrentFile = Application.GetOpenFilename(, , "Please choose the file you want to process.") It opens in the "My Documents" folder instead. Any ideas? Thank You, -plh PS: I also tried ChDir "G:\MULTUS\PROVEOUT" strCurrentFile = Application.GetOpenFilename(, , "Please choose the file you want to process.") That is without the final "\" in the ChDir statement and got the same result. -- Where are we going and why am I in this HAND BASKET?? -- Where are we going and why am I in this HAND BASKET?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change current directory to the directory that the workbook loads from! | Excel Programming | |||
current directory | Excel Discussion (Misc queries) | |||
Current Directory | Excel Discussion (Misc queries) | |||
get current directory | Excel Programming | |||
changing current directory to that of the current open file | Excel Programming |