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

How to select path with window open up

Status
Not open for further replies.

ajaygulati

Programmer
Nov 24, 2003
17
US
I want functionality to open up a window and let user browse to the path where he want to send output files. I know how to open file using window pop up using MSA_OPENFILENAME but I need to select the papth instead of opening file.

Do anybody know or did this type of functionality, Please Help!

Ajay
 
It may be too simple for what you are after (or the actual filename may get in the way if you only need a folder path), but you can always use:
Code:
x = Application.GetSaveAsFilename()
to bring up Excel's standard "Save As" dialogue box. It will return whatever pathname the user specifies to the variable.

VBAjedi [swords]
 
. . . solved by what/who? We'd like to know what worked, too!

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top