printing email messages

  • Thread starter Thread starter John
  • Start date Start date
J

John

how can I use VBA to open and print email? I am running
office 2000 on windows 98se. I have a few thousand emails
in .msg format that I need to print. Right now I can only
open and print them one at a time. Thanks for any help.
 
You can save them as files into the file system and
print them out from there. But be careful, a MSG
file may recursively contain more files, you have
to deal with these cases.

-david
(e-mail address removed)

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Hi.
Thanks for the advice. I already have the messages in a
normal file. My dilemma is that I do not have enough
memory/room to print more than 2 or three at a time. at
that rate, it would take me a week to print them all. I
really need a way to 1)open a message 2) print the
message, 3) close the message and 4) repeat until all
messages have been printed.
 
This is actually fairly straightforward:

Sub PrintSelectedMessages()
Dim objItem As Object, intX As Integer

For intX = 1 To Application.ActiveExplorer.Selection.Count
Set objItem = Application.ActiveExplorer.Selection.Item(intX)
objItem .PrintOut
Next
End Sub
 
Back
Top