View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default extract filename from full path

Leung,
Look into InStrRev or Split functions.

NickHK

"Leung" wrote in message
...
Hi

Is there anyway use some text extract function in VBA so that I can

retrieve
the file name from these path? How to write a code in a function to

retrieve
the name:

such as intri function??
path:
F:\FC_bank\_common\Month-end Jun 05\MEJun2005\SAP\RC code 13Jul2005.xls
string to retrieve:
RC code 13Jul2005.xls

thanks

Leung