attaching e-mails to new e-mail using VBA

  • Thread starter Thread starter Hii Sing Chung
  • Start date Start date
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
 
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
-
 
Back
Top