A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Monitoring for changes



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old April 19th 06, 04:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Monitoring for changes

You have to cache the original value of the property or properties you are
interested in. Even if you handle Item.PropertyChange or
Item.CustomPropertyChange you'd only get the name of the property that was
changed and reading its value would return the new value, not the original
value.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Simon Woods" wrote in message
...
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.


Ken ... can I trouble you again ...

You say that I can use the Write event to get changes before the save is
made. I've got the event hooked up and firing okay. I've got the item
which is about to be written so have the new value. I don't understand how
you were thinking I'd get the current existing value of the item.

I know I'm being a bit slow here.

Thanks

Simon


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

Ken Slovak - [MVP - Outlook] wrote:
You have to cache the original value of the property or properties
you are interested in. Even if you handle Item.PropertyChange or
Item.CustomPropertyChange you'd only get the name of the property
that was changed and reading its value would return the new value,
not the original value.


Thanks ... I thought there may be something internal I was missing. I'm
doing this through the NewInspector event Inspector.CurrentItem. Does that
sound right?

Simon


  #13  
Old April 19th 06, 07:31 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Monitoring for changes

That's how you'd get the currently opened new item, yes.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Simon Woods" wrote in message
...
Ken Slovak - [MVP - Outlook] wrote:
You have to cache the original value of the property or properties
you are interested in. Even if you handle Item.PropertyChange or
Item.CustomPropertyChange you'd only get the name of the property
that was changed and reading its value would return the new value,
not the original value.


Thanks ... I thought there may be something internal I was missing. I'm
doing this through the NewInspector event Inspector.CurrentItem. Does that
sound right?

Simon


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Outlook and AOL port monitoring FourFunnels Outlook - Installation 1 January 22nd 06 04:01 PM


All times are GMT +1. The time now is 10:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.