I have a shared outlook 2000 mailbox. I need to write some code so that I can be notified when somebody modifies an item in this mailbox I can be informed of this. I have written some VB code within outlook which can tell me when the item is modified but I can not find a way of getting it to tell me who has modified it. I know if I put the code on everyone's machine I can use the currentuser command to find out this information, but this is not an option. I need the one machine to know and tell me who is modifiying the items in the mailbox. Any ideas?
Code:
Public WithEvents myolitems2 As Outlook.Items
Set myOlItems2 = Outlook.Session.Folders("Mailbox").Folders("Inbox").Items
Private Sub myOlItems2_ItemChange(ByVal Item As Object)
'this will run once anyone has modified an item, and this is where I need the extra code to go, to tell me who has modified it.
End Sub
Code:
Public WithEvents myolitems2 As Outlook.Items
Set myOlItems2 = Outlook.Session.Folders("Mailbox").Folders("Inbox").Items
Private Sub myOlItems2_ItemChange(ByVal Item As Object)
'this will run once anyone has modified an item, and this is where I need the extra code to go, to tell me who has modified it.
End Sub