| | Awarded by Microsoft since 2005: |  |
| | VBOffice Info | | Visitors | 1388939 | | Impressions | 5087120 |
| |
|
| |
| Author: Michael Bauer | Homepage | | Date: 24.03.2007 | Accessed: 22245 | | | | Description
This sample prints every e-mail that's unread and gets into the Inbox (so, it also prints unread e-mails that you move manually from any folder into the Inbox). |
Private WithEvents Items As Outlook.Items
Private Sub Application_Startup()
Dim Ns As Outlook.NameSpace
Set Ns = Application.GetNamespace("MAPI")
Set Items = Ns.GetDefaultFolder(olFolderInbox).Items
End Sub
Private Sub Items_ItemAdd(ByVal Item As Object)
If TypeOf Item Is Outlook.MailItem Then
PrintNewItem Item
End If
End Sub
Private Sub PrintNewItem(Mail As Outlook.MailItem)
On Error Resume Next
If Mail.UnRead Then
Mail.PrintOut
End If
End Sub
|
| | |
| | |  | ReplyAll alerts you before unintentionally replying all, or if you are a confidential BCC recipient of the ... [more] |
| | |  | Access the master category list in the blink of an eye, share your categories in a network, get a reminder service, and ... [more] |
| | |  | SAM automatically sets the sender, signature, and folder for sent items, for instance based on the recipient ... [more] |
| | |  | OLKeeper reliably prevents users from closing their Outlook window and thus possibly missing reminders or ... [more] |
| |
|