View Single Post
  #7  
Old October 19th 06, 02:38 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Deleting Duplicate Mailitems

Use the On Error Resume Next before testing for IsEmpty.

ConversationIndex and ConversationTopic. All items in a thread have the same
ConversationTopic and each one gets a Windows time struct of 8 bytes
appended to the previous ConversationIndex.

--
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


"Geoff" wrote in message
...
Hi Ken,

Very many thanks.

The field only captures the last action taken.


It was important for me to know that to solve my present problem. Thanks
for that.

You can check for IsEmpty() for fields that may not be there by default.


Where am I going wrong please?

When the PR_LAST_VERB_EXECUTED property does not exist (in the MAPI fields
collection for an Outlook Mailitem), the following code line produces a
run-time error (not as I expected FALSE):

"If IsEmpty(objMAPIFields.item(&H10810003)) Then"

But if I precede the above code line with:

"On Error Resume Next"

then the IsEmpty() function returns TRUE.

How did you mean I should use IsEmpty() please and what's going on above?

Just FMI, where would the following detailed information be stored:
"You replied on 15/10/2006 01:52. Click here to find all related
messages."

TIA, Regards
Geoff


Ads