PC Review


Reply
Thread Tools Rate Thread

_ItemChange fires, when Item_Open is performed

 
 
sledge via OfficeKB.com
Guest
Posts: n/a
 
      2nd Jun 2005
Hello,

This happens as follows:
I create an item of my custom form (task) in some task (non-default) folder.

I want to create a copy of it in Personal Tasks (default Tasks) and to make
it ordinary -- IPM.Task. Thus I simply do it via CDO (to avoid code run):
Set cdoCopied = cdoItem.CopyTo(..personal forms...)

I also monitor Personal Tasks folder for any Items_ItemChange event and
then perform other necessery tasks.
The strangest thing is, that this event (ItemChange) is FIRED, when I open
that copied Item (doubleclick). I do not save anything, I just open it.
Nothing is Changed... So, why does this event fire? (it does not fire
during all successive openings, and with all other Tasks).

The temporary workaround is as follows:

If Application.Inspectors(Application.Inspectors.Count).CurrentItem.EntryId
= Item.EntryId Then
Exit Sub ' as inspector is being already shown..

Though this method is not 100% (to my mind).. There may be other
No code is run within that item's opening (it's messageclass is definately
"IPM.Task"!). Why does this weirdness happen then?..

Thank You for a hope in help

--
sledge

--
Message posted via http://www.officekb.com
 
Reply With Quote
 
 
 
 
sledge via OfficeKB.com
Guest
Posts: n/a
 
      2nd Jun 2005

on-fly corrections:
Set cdoCopied = cdoItem.CopyTo(..personal tasks...)

I even tried doing folPersonalTasks.Add("IPM.Task") ' and then remapping
all properties...

I also surely do all those
.MessageClass = "IPM.Task"
to make sure, this item becomes ordinary

--
Message posted via http://www.officekb.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Item_CustomProperty fires before Item_Open? =?Utf-8?B?d2lsbHdvbmc=?= Microsoft Outlook Form Programming 2 9th Nov 2007 04:17 PM
Item_Open Question =?Utf-8?B?Q3VsdmVyaW4=?= Microsoft Outlook Form Programming 5 30th Aug 2006 03:00 PM
comboBox TextChanged event fires twice because Items.Insert() fires the event too... Rob Hindman Microsoft Dot NET Framework Forms 2 25th Aug 2003 08:10 AM
Item_Open Arlene Swedberg Microsoft Outlook Form Programming 1 23rd Jul 2003 05:06 PM
Item_Open Arlene Swedberg Microsoft Outlook Form Programming 0 22nd Jul 2003 06:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:16 PM.