View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] lecoughlin@gmail.com is offline
external usenet poster
 
Posts: 8
Default Returning Part of a String

I have the a set of strings - file paths - that follow this general
format:

C:\My Documents\Tools\New Hampshire_1.xls
C:\My Documents\Tools\New Hampshire_11.xls
C:\My Documents\Tools\Vermont_2.xls

So basically the state, underscore, and number.

What code could I write to create a new string with only the New
Hampshire_1 part?

Thanks in advance.