Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Outlook Folder Email Sorted by Subject

Status
Not open for further replies.
Feb 6, 2001
29
US
Someone wrote a simple macro that prints all unread mail in an Outlook folder. The issue is that I want the printed documents to be printed sorted by subject field.

Below is the simple code for printing..

For Each oMailItem In oFolder.Items
If oMailItem.UnRead Then
' print
Call oMailItem.PrintOut

There is a Subject item defined in the macro for other uses that could be used.

Dim sSubject
sSubject = oMailItem.Subject

Thanks for any help -- I don't program.. obviously (-:

 
I forgot to mention that I did the obvious thing by sorting the folder by subject field. I cannot determine exactly how it is determining the print order. It is not by received time or the from field (which is all the same).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top