![]() |
| 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. |
|
|||||||
| Tags: emails, lots, printing |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have to print a lot of emails - possibly several thousand.
I have a macro that sends them to the printer, but is there a way I can read the contents and write them to a text file? I'd like them to look as much as possible like the actual printed copies do. It seems I MIGHT be able to open a text file, then write out the relevant fields, like: Open OutMail for output as 1 for each MailItem a$ = mailitem.field1 if len(a$)0 then print #1,a$ a$=mailitem.field2 if len(a$)0 then print #1,a$ etc. Print #1, "End of this mailitem" next Mailitem Close 1 Will this work? And what fields do I want to capture? I'm having some trouble figuring that out. I don't need attachments, just basically To and From, Title of the email, date sent, people on the CC list, and the letter text. TIA. |
| Ads |
|
#2
|
|||
|
|||
|
"Hank Youngerman" wrote in message
oups.com... I have to print a lot of emails - possibly several thousand. I have a macro that sends them to the printer, but is there a way I can read the contents and write them to a text file? I'd like them to look as much as possible like the actual printed copies do. It seems I MIGHT be able to open a text file, then write out the relevant fields, like: Open OutMail for output as 1 for each MailItem a$ = mailitem.field1 if len(a$)0 then print #1,a$ a$=mailitem.field2 if len(a$)0 then print #1,a$ etc. Print #1, "End of this mailitem" next Mailitem Close 1 Will this work? And what fields do I want to capture? I'm having some trouble figuring that out. I don't need attachments, just basically To and From, Title of the email, date sent, people on the CC list, and the letter text. TIA. Formatting them is going to be a bitch. - especially if you are looking for the same format they came in and of some are HTML based instead of text based. Have you considered sending them to a PDF printer? This would be easily readable (human readable) and would be searchable etc.. If you are simply wanting readable files from the emails, I suggest sending the files to a PDF printer and "printing" each as a file (or printing them all to one big PDF file). You can get a free PDF printer at http://www.cutepdf.com/Products/CutePDF/writer.asp or http://www.primopdf.com/. If you are simply looking for the data, in Outlook go to FilesExportExport as a file and choose Excel. Accept the defaults and you should get an excel spreadsheet with all of the data in an easily searchable XLS document. squishy |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OE6 Not printing emails | Thrifty1 | Outlook Express | 2 | April 11th 07 09:31 AM |
| Lots of emails, slowing down Outlook 2007 | lrbtav | Outlook - General Queries | 2 | April 6th 07 02:57 PM |
| Sending Lots of email | TonySper | Outlook Express | 7 | July 17th 06 04:28 AM |
| recovering lost file with lots of emails | joeri | Outlook Express | 7 | July 11th 06 03:31 PM |
| Bad Emails - Advanced Find (adding lots of entries) | srm | Outlook - General Queries | 2 | January 22nd 06 05:20 PM |