View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] starke1120@hotmail.com is offline
external usenet poster
 
Posts: 13
Default Filename variable

I have a variable that contains a Path and filename.. is there a way to
strip out just the file name using vba code...

for example:

strPathFile = c:\windows\test.png

i need

strFileName = test.png

I need somthing to start at the right most character and then move left
till it finds "\"...

Thanks,

Dave