searching for attachments that have a certain "text" in the name

  • Thread starter Thread starter thomas donino
  • Start date Start date
T

thomas donino

Is it possible to search all attachments for a certain word in the attachment
name to move it to another directory? I looked thru the rules but saw nothing
about searching attachment names.
 
I'm not clear on what you mean by "directory" -- Outlook uses the term
"folders" to refer to the place where you store emails. Otherwise,
here is how you would check an attachment filename for a matching
string:

If Instr(Attachment.FileName, "your search text") > 0 Then
' move the file
Else
' don't move the file
End If

--JP
 
Back
Top