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

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.
 
J

JP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top