Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

providing a directory for getopenfilename method 1

Status
Not open for further replies.

smooveb

IS-IT--Management
Jul 20, 2001
161
US
Hi everyone,

I'm using the GetOpenFilename method as shown below:

Filename = Application.GetOpenFilename(filefilter:=filt, Title:=Title)

What I'm wondering is this: how can i provide a default directory on my C: for this to occur in? I'd like to avoid the user needing to browse to the same directory each time (from My Documents, where it seems to be opening now).

Thanks!
Barrett
 
Simply use the ChDir instruction before.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top