Nigel,
If you have Excel 2000 or late, you can use InstrRev, and look for the last
\. Check it out in VBA Help.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"Nigel" wrote in message
...
Hi All
What is the the most efficient way of of extracting the path and file
elements from a text string?
I have a full path string such as (the path length and file type can
change)
D:\Development Path\Main Files\Test Procedures\Sample Data.mdb
What I would like to end up with is two string variables xPath and xFile
xPath = D:\Development Path\Main Files\Test Procedures\
xFile = Sample Data.mdb
TIA
Cheers
Nigel
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet
News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000
Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---