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

Open folder not file

Status
Not open for further replies.

advox1

Technical User
Nov 28, 2003
26
0
0
GB
Hi

I have a button which when clicked needs to open a folder to show the workbooks contained in that folder.

The folder has a variable, so the folder path will look somehting like this

"P:\Spreadsheet Project\Testfolder\04_" & myVar"

Can anyone assist me with the code to open the folder only?

Thanks

Jo
 
As you want to show worbooks I guess you want an Excel tip.
Take a look at the Application.GetOpenFilename method.
Depending of your Office version you may also consider the Application.FileDialog object.

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