attaching e-mails to new e-mail using VBA

H

Hii Sing Chung

Dear all,

I need to use VBA to iterate through the inbox and attach all mails that has
a specific subject and specific 'SentOn' value (same date and time) to a new
mail. So far I've seen codes that attach files into e-mail, but how do I
attach e-mails to e-mail?

Thanks in advance.

Sing Chung
 
D

Dmitry Streblechenko

Instead of passing the file name to Attachments.add, pass the message
(MailItem object) to be added.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

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