View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Myrna Larson[_2_] Myrna Larson[_2_] is offline
external usenet poster
 
Posts: 124
Default Rename attachment

You can use the InstrRev function to find the last slash, or the Split command to split the
string at the slashes and discard all but the last element in the resulting array.

On Fri, 18 Jul 2003 07:48:27 -0700, "Andrew" wrote:

How do I rename multiple attachments when stripping
multiple attachments? I have the code to strip
attachments and it works fine.

My problem stems from file names that include
forward /'s. Example below:

/company/operations/filename

So actually, I need to keep filename, but remove preceding
information.

Thank you.