| | Awarded by Microsoft since 2005: |  |
| | VBOffice Info | | Visitors | 1388132 | | Impressions | 5083232 |
| |
|
| |
| Author: Michael Bauer | Homepage | | Date: 05.05.2006 | Accessed: 18698 | | | | Description
We are very sorry! This description is not translated yet. Anyway, please try the code as it is self-explanatory. |
Private WithEvents Items As Outlook.Items
Private Sub Application_Startup()
Set Items = Application.GetNamespace("MAPI") _
.GetDefaultFolder(olFolderInbox).Items
End Sub
Private Sub Items_ItemAdd(ByVal Item As Object)
If TypeOf Item Is Outlook.MailItem Then
AddSenderEmailAddress Item
End If
End Sub
Private Sub AddSenderEmailAddress(Mail As Outlook.MailItem)
On Error Resume Next
Dim rdItem As Object
Dim Field As Outlook.UserProperty
Set rdItem = CreateSafeItem(Mail)
Set Field = Mail.UserProperties("SenderAddress")
If Field Is Nothing Then
Set Field = Mail.UserProperties.Add("SenderAddress", olText, True)
End If
Field.Value = rdItem.SenderEmailAddress
Mail.Save
ReleaseSafeItem rdItem
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] |
| |
|