Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm working on a macro that uses GetOpenFilename to return
the name of a .dat file that is used to load saved data into a userform. Is there a way that I can specify the directory that is opened in the dialog box? I'm afraid the users will not know where to look otherwise. I have been able to specify the directory when using GetSaveAsFilename to save these same .dat files. Cheers. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Robin
Use ChDir to change the current directory before the GetOpenFilename line. GetOpenFilename opens to the current directory. -- Dick Kusleika MVP - Excel www.dicks-clicks.com Post all replies to the newsgroup. "Robin Seaby" wrote in message ... I'm working on a macro that uses GetOpenFilename to return the name of a .dat file that is used to load saved data into a userform. Is there a way that I can specify the directory that is opened in the dialog box? I'm afraid the users will not know where to look otherwise. I have been able to specify the directory when using GetSaveAsFilename to save these same .dat files. Cheers. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chdrive "D"
Chdir "D:\data1\data2\mydata" ' now do getopenfilename Regards, Tom Ogilvy "Robin Seaby" wrote in message ... I'm working on a macro that uses GetOpenFilename to return the name of a .dat file that is used to load saved data into a userform. Is there a way that I can specify the directory that is opened in the dialog box? I'm afraid the users will not know where to look otherwise. I have been able to specify the directory when using GetSaveAsFilename to save these same .dat files. Cheers. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using filename retrieved from GetOpenFilename | Excel Discussion (Misc queries) | |||
GetOpenFilename not returning a usable variable | Excel Discussion (Misc queries) | |||
GetOpenFilename - Problem | Excel Programming | |||
GetOpenFilename and arrays | Excel Programming | |||
GetOpenFilename | Excel Programming |