VBA to read data from Outlook email attachment

  • Thread starter Thread starter tod
  • Start date Start date
T

tod

This seems impossible. However, I've thought that before only to have
someone show me how easy it is. Soooo....

I get an email each day with an Excel workbook attached. The workbook
contains data on the second worksheet that I copy and paste into my
own workbook. It's a pain to do this every day. I don't have much
control over the source or I would have them post it some place
instead of emailing it. Is there a way to have VBA open an email, open
the attachment, read the data, close the attacment and close the
email?

tod
 
Activate Outlooklibrary and watch out for:

Outlook.MailItem.AttachmentRead

that will do the trick...
 

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

Back
Top