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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initial Directory for GetOpenFilename method

Status
Not open for further replies.

4321z

Programmer
Oct 21, 2003
45
GB
Hi,

I'm using the GetOpenFilename method of retrieving a file name see below:

Set exApp = CreateObject("Excel.Application")
strFileToOpen = exApp.GetOpenFilename("Picture Files (*.jpg), *.jpg")

and i want to look in an initial directory/folder for these jpg files - any ideas?


 
Have you tried to use the ChDir instruction before launching excel ?

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

Part and Inventory Search

Sponsor

Back
Top