Obtaining sent email

G

Guest

From a VB program, I need to read the subject line for each Outlook sent
email in order to locate a specific email, then need to grab the message to
display to the user. Would also like to do the same for recvd email.

Could somone help me get started? Anyone have any code they can share?

Any help appreciated,
Mark
 
M

Michael Bauer [MVP - Outlook]

You can start with the VBA help file, which comes with a lot of samples.
Please open the object browser (f2) and switch from <All libraries> to
Outlook. You can then easily browse the available objects (left hand) and
their functions etc. (rigth hand).

For getting started: Get the SentItems folder via GetDefaultFolder function
(find it in the object browser then click f1 for a sample).

Each Mapifolder object has an Items collection you can loop through. To
display a message cal its Display method.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Sun, 15 Apr 2007 16:36:00 -0700 schrieb Markus:
 

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