![]() |
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
|
|||
|
|||
![]()
Hello
I am monitoring a public contacts folder (on an exchange server). Every time a contact is changed a program should be launched. But the event occures even when the contact is only opened. Nothing needs to be changed to let the event fire. Do I need to take an other event? My code is below Thank you very much for your help!!!! Michael Public WithEvents colPubCustomersItems As Outlook.Items Public Sub Application_Startup() Set objFolders = Session.GetDefaultFolder(olFolderInbox).Parent.Fol ders Dim strFolderPath As String strFolderPath = "Öffentliche Ordner\Alle Öffentlichen Ordner\Kontakte von AS-DA2" Set myolapp = CreateObject("Outlook.Application") Set myNamespace = myolapp.GetNamespace("MAPI") Set colPubCustomersItems = myNamespace.Folders("Öffentliche Ordner").Folders("Alle Öffentlichen Ordner").Folders("Kontakte von AS-DA2").Items End Sub Private Sub colPubCustomersItems_Itemchange(ByVal Item As Object) Dim objCont As Outlook.ContactItem Set objCont = Item Shell "C:\Programme\prog_to run.exe", 0 'vbnormal End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ItemChange event is modifying my Calendar Events | mark | Add-ins for Outlook | 4 | November 6th 06 10:17 PM |
ItemChange and Exchange synchronization | Rog | Add-ins for Outlook | 15 | October 29th 06 09:36 PM |
Item Open event does not occurs every time | sfradel | Add-ins for Outlook | 1 | September 2nd 06 04:33 PM |
Public Folder Calendar All Day Event Viewing Problem | NGCW | Outlook - Calandaring | 4 | March 31st 06 08:34 AM |
Mapi Folder Items ItemChange event is not firing | AtulSureka | Outlook and VBA | 3 | February 5th 06 06:25 PM |