Consulting

Results 1 to 2 of 2

Thread: How to identify the type of attachment

  1. #1
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    357
    Location

    Question How to identify the type of attachment

    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.


    Thanks
    Sudhir

  2. #2
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •