PDA

View Full Version : How to identify the type of attachment



kbsudhir
10-02-2008, 10:32 AM
Hi,

I want to know what kind of attachment I received in my mail & want to make the macro read the attached file for a keyword in column A if the attached file is an excel file.

I can check for if the mail item has any attachments but how to identify the filetype of teh attachments.

:doh: :doh:
Thanks
Sudhir

jfournier
10-02-2008, 11:57 AM
The easiest solution would just be to read the extension on the attachment file name, and if it's an Excel extension (.xlsx/.xls or whatever) then that's it...