View Single Post
  #3  
Old April 18th 06, 04:12 PM posted to microsoft.public.outlook.program_vba
Simon Woods
external usenet poster
 
Posts: 10
Default Monitoring for changes

Thanks Ken.

I must admit that I found an example of yours elsewhere which has been very
helpful.

There's still a couple of questions

1) Our company uses Exchange Server and I'm working remotely and
synchronising a task-type journal. Obviously the unread flag gets unset when
someone in the office changes a journal item and that gets reflected to me
when I synchronise. Am I able to work out who made the changes if I look
through the unread messages after synchronising?

2) Also is there an "AfterSynchronisation" type event whether it is of the
Outlook object or the specific folder I'm monitoring?

Thanks again

Simon



Ken Slovak - [MVP - Outlook] wrote:
You can handle the ItemChange and ItemAdd events of the Items
collection of that folder. When an item is saved or added in that
collection you will fire those events. You can also monitor for items
being opened (NewInspector event of the Inspectors collection) and
handle the Write event to get changes before the save is made. That
won't work with in-cell editing in a folder view however.


"Simon Woods" wrote in message
...
Hi

[Using Outlook 2003 (SP2)]

I want to write a little program which monitors a particular public
journal and logs date, time, old/new value, who is making the change
(and potentially other information) each time an item changes. Is
there anything in the object model to help me or do I need to do
most of it myself.

Ideally, I'd like Outlook to tell me (by raising an event) just
before an item is edited so I can capture the various data I need.

Thanks

Simon



Ads