This sample prints new e-mails:
http://www.vboffice.net/sample.html?...showitem&pub=6
In Application_Startup replace olFolderInbox by olFolderSentItems. In the
print procedure replace the Mail.Unread by the mentioned MsgBox, which is
the same funtion as in Excel.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
Am Thu, 2 Aug 2007 19:32:04 -0700 schrieb Martin Boys:
> Thanks for your help. I have experience wiritng macros in Excel, but never
> in Outlook. Do you possibly have an example of some code I could copy?
>
>
>
> "Michael Bauer [MVP - Outlook]" wrote:
>
>>
>>
>> I don't have the solution for you, but if you want to write the code:
>>
>> use the ItemAdd event of the SentItems folder. The VBA help file provides
>> you with a sample for ItemAdd. In that event use the MsgBox function with
>> the parameter vbYesNo. If the user clicks Yes then call the item's
PrintOut
>> property.
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>> Organize eMails:
>>
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>
>>
>> Am Wed, 1 Aug 2007 19:02:04 -0700 schrieb Martin Boys:
>>
>>> I want to create a rule or write a macro in Outlook that allows me to
>> choose
>>> if I want to print the email after it has been sent.
>>>
>>> Ideally, after sending the email I would like a message to pop up that
>> asks
>>> if I would like to print the email and I could choose either 'Yes" or
>> 'No'.
>>>
>>> Dose anyone have a solution?
>>>
>>> Thanks,
>>> Martin Boys.
>>