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!

Get path of file still unopened in folder

Status
Not open for further replies.

EddyH

Technical User
Jan 22, 2004
7
GB
By VBA I have found a filename within a known folder, could be .doc file or some other non spreadsheety one. As I am within Excel I wish not to open it but just to capture its filepath.

Any offers?

 
Isn't filepath = known folder & "\" & filename ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
You're correct but I want the whole shebang from drive to folder without opening the file once checked it is there.

 
Hi EddyH,

You're not making a whole lot of sense to me. What is wrong with PHV's answer? You have a known folder and a filename; what else do you need? Can you post the code you have and what it is producing compared to what you want.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top