Send and Print email macro

  • Thread starter Thread starter tonywoodhouse
  • Start date Start date
T

tonywoodhouse

Anyone got idea how to implement a "send then print" macro in Outloo
VBA? (I'm a fairly experience VBA programmer)

If I set an object variable to point to the unsent message, then sen
it, then try to print it, my object pointer is no longer valid.

If I print it first, I don't get the send date, and sender informatio
on the print out.

If I send it, then find it in the Sent items folder, and print it fro
there, it works, fine, but outlook.exe hangs in memory when you try t
quit outlook!?!

I'm pulling my hair out trying to do such a simple task!

Any help much appreciated
 
You could implement an ItemAdd handler for the Sent Items folder and if the
item being added is what you are interested in you can then print it. See
http://www.outlookcode.com/d/code/zaphtml.htm#cw for an example of an
ItemAdd handler (for the Inbox) that can be modified to be an ItemAdd
handler for what you want in the Sent Items folder.
 
Back
Top