Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / June 2005

Tip: Looking for answers? Try searching our database.

Reading Email Headers using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nigel - 05 Jun 2005 11:18 GMT
From Excel I wish to choose a selected outlook folder and read the email
header information (from to subject etc) and create the list in an Excel
worksheet.  Is this possible?  If so how can I determine the list of
folders, whether they contain email items, and then access the details?
TIA

Signature

Cheers
Nigel

Michael Bauer - 07 Jun 2005 07:55 GMT
Hi Nigel,

all top folders are availabe via Application.Session.Folders. Each
folder in turn contains a folders collection (expect Searchfolders in
OL03).

You could check a folder´s DefaultItemType property but that´s no
guarantor for its content in fact. For getting a list of all MailItems
in a folder you could use the Items.Restrict function and search for
MessageClass="IPM.Note".

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> From Excel I wish to choose a selected outlook folder and read the email
> header information (from to subject etc) and create the list in an Excel
> worksheet.  Is this possible?  If so how can I determine the list of
> folders, whether they contain email items, and then access the details?
> TIA
Nigel - 08 Jun 2005 20:16 GMT
many thanks

Signature

Cheers
Nigel

> Hi Nigel,
>
[quoted text clipped - 15 lines]
> details?
> > TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.