Use the Add method of the UserProperties collection.

Signature
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
> Hi Guys
>
[quoted text clipped - 6 lines]
>
> Ian
Ian Mackenzie - 31 Mar 2006 14:50 GMT
Thanks
I managed to do it like this:
MailItem.UserPreferences.Add('ID', olText).Value := 'TestID';
newTestId := mailItem.UserPreferences('ID').value
Thanks for your help...
Ian
> Use the Add method of the UserProperties collection.
>
[quoted text clipped - 8 lines]
>>
>> Ian