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

Explorer in VB to get a path to a document 1

Status
Not open for further replies.

ErantD

Programmer
Mar 28, 2003
11
ES
How do I make a little explorer come out in my VB project so that the user can look for a file and when he hits the accept I can get the path to that file.

simply a grafical interface for the user to search PC the PC for his/her file and press accept. Then the program has the path in a variable.
 
After searching on this site for some more I found an answer:


Dim xl as Excel.Application, fn
Set xl = CreateObject("Excel.application")
fn = xl.GetOpenFilename
If fn <> False then
'do something with fn
End if


Where fn is the path : )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top