Thread: get folder name
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default get folder name

Using InStrRev if you're using xl2k or above.

Or looping from the last character to the first looking for the path separator
(\ on windows).

AD108 wrote:

What would be the most direct approach to extracting just the last folder
name from "ThisWorkBook.Path".


--

Dave Peterson