A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Obtaining sent email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 16th 07, 12:36 AM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Obtaining sent email

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
Ads
  #2  
Old April 16th 07, 05:52 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Obtaining sent email



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...&lang=en&pub=6

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

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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtaining Folder Size in Public Folder Favourites Kentucky Outlook and VBA 0 September 7th 06 04:14 PM
Obtaining unique ID for contact? miner2049er Outlook - Using Contacts 6 April 29th 06 06:43 PM


All times are GMT +1. The time now is 07:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.