Determine whether the item is open or not?

J

John Riddle

I've asked this question about 3 months ago with no replies. I'm really hoping that someone can help me on this...

I need to know how to determine if an item (such as an open item being viewed) is actually open or if it is merely being referenced (such as an item returned when looping through items in a folder and processing them)? I've tried everything and can't seem to figure out how to tell the difference via code.

I have certain code in my form that should only execute if the user is currently working with the item (such as if the user changes a field) but not execute if that field is changed via code running from VBA.

Can someone please help me with this?

Thanks,

John
 
K

Ken Slovak - [MVP - Outlook]

Look for an Inspector that has that item as its CurrentItem.




John Riddle said:
I've asked this question about 3 months ago with no replies. I'm really
hoping that someone can help me on this...
I need to know how to determine if an item (such as an open item being
viewed) is actually open or if it is merely being referenced (such as an
item returned when looping through items in a folder and processing them)?
I've tried everything and can't seem to figure out how to tell the
difference via code.
I have certain code in my form that should only execute if the user is
currently working with the item (such as if the user changes a field) but
not execute if that field is changed via code running from VBA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top