![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I'm not too familiar with Outlook VBA but what I'm looking for is a simple event macro to be fired upon each mail sent. A ask pop-up window should ask if I want to print - or not and if the answer is YES - the whole(!) message will be printed INCL. the TO recipients, and if possible alse the resolved BCC recipients. I managed to write a simple code which works fine BUT the TO, CC and BCC recipients do not print. Thanks in advance to everone who would be kind to present a complete Event-Macro for my request. This is what I wrote ( the msgboxes are for testing purposes only): ==================================== 'Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) '' Print message upon sendig 'On Error Resume Next 'Dim objRecipient As Recipients MsgBox Item.objRecipient, 65588 MsgBox Item.Subject, 65588 MsgBox Item.Body, 65588 CancelPrint = MsgBox("Do you want to print the present outgoing Mail ?", 65588) vbNo If CancelPrint Then End Item.PrintOut End Sub =========== Thanks, Micky |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Print Assisant wont print birthdays or aniversaries | Bradenn | Outlook - Calandaring | 0 | February 8th 09 04:18 PM |
Weekly Print layout; text styles and sizes; changing print templat | ''''Izast'''' | Outlook - Calandaring | 0 | January 19th 09 07:51 PM |
How to Print .prn file saved by Outlook Contacts Category print? | Jim TerpFootball52-55 | Outlook - Using Contacts | 2 | November 17th 08 12:29 AM |
D-Link DP-301U print server will not print from Outlook, OE, or Firefox | KLS | Outlook - General Queries | 2 | March 22nd 06 11:52 AM |
D-Link DP-301U print server will not print from Outlook, OE, or Firefox | KLS | Outlook Express | 4 | March 22nd 06 03:14 AM |