Browse Folders (1 Viewer)

Rob.Mills

Registered User.
Local time
Yesterday, 20:13
Joined
Aug 29, 2002
Messages
871
I have created a procedure to transfer multiple tables to excel sheets. What I would like is for them all to go into the same folder. I've created a form that will allow people to type in the path of the folder.

What I would like is to add a button on this form that will open the browser window so that people can scroll through to find the folder they want and have it automatically place that path in the textbox. Anyone know how to do this?
 

Travis

Registered User.
Local time
Yesterday, 17:13
Joined
Dec 17, 1999
Messages
1,332
You could use the Common Dialog Control, Common Dialog Control API, or the SHBrowseForFolder API.

The SHBrowseForFolder API sets up a Browser that shows only Drives and Folders and sounds more like what you want.

Visit this web site for an Example

vbnet
 

Haitham

Registered User.
Local time
Today, 03:13
Joined
Oct 27, 2002
Messages
17
Brows Folder

It's I Guess Easy,

Dim BrowsFolder
BrowsFolder = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE " & "C:\Any Folder", vbNormalFocus)
End Sub

Don't 4get The Space After (Iexplore.exe).

Good Luck
 

Users who are viewing this thread

Top Bottom