L
lostwings
hi sue,
Yesterday I posted the question about how to disable event handler for
outlook.items object. I think my words might not be very clear in that post.
Now I am going to make it a little bit more clear. In my COM Add-In, I have
created a subfolder under Contacts folder called "Telnet". And I want to
populate items in this folder from a Database Table, also I want to monitor
all the user "ItemAdd" events for this folder. Once the "ItemAdd" event is
raised, it will insert the user-added item(not the items populated from the
database) into the Database Table as well.
However, the Outlook.Items's ItemAdd event cannot distinguish if the newly
added item is from the user or is populated from the database table. So I
think if I can find a way to disable outlook.items 's event handler during
the Sub Populate, which is coded to populate the items under "telnet" from
the DB, and enable it once the Sub Populate finishes, that will solve the
problem for me.
I've noticed that in excel.application object there is a property called
EnableEvents. programmer can set this property to disable/enable event
handler. So is there a equivalance property for the outlook??
Thanks in Advance.
Yesterday I posted the question about how to disable event handler for
outlook.items object. I think my words might not be very clear in that post.
Now I am going to make it a little bit more clear. In my COM Add-In, I have
created a subfolder under Contacts folder called "Telnet". And I want to
populate items in this folder from a Database Table, also I want to monitor
all the user "ItemAdd" events for this folder. Once the "ItemAdd" event is
raised, it will insert the user-added item(not the items populated from the
database) into the Database Table as well.
However, the Outlook.Items's ItemAdd event cannot distinguish if the newly
added item is from the user or is populated from the database table. So I
think if I can find a way to disable outlook.items 's event handler during
the Sub Populate, which is coded to populate the items under "telnet" from
the DB, and enable it once the Sub Populate finishes, that will solve the
problem for me.
I've noticed that in excel.application object there is a property called
EnableEvents. programmer can set this property to disable/enable event
handler. So is there a equivalance property for the outlook??
Thanks in Advance.