Did you try creating the property, then setting its value:
prop = objJournalEntry.UserProperties.Add("id", OlUserPropertyType.olNumber)
prop.Value = 1
Does the folder have an existing proeprty named id of another type?

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
[quoted text clipped - 21 lines]
> objJournalEntry.UserProperties.Add("id", OlUserPropertyType.olNumber).Value
> = 1
Ben - 24 Feb 2006 10:32 GMT
Tks for help !
I will try this method.
And the property "id" doesn't already exist.
Did you try creating the property, then setting its value:
prop = objJournalEntry.UserProperties.Add("id",
OlUserPropertyType.olNumber)
prop.Value = 1
Does the folder have an existing proeprty named id of another type?

Signature
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Hi,
>
[quoted text clipped - 22 lines]
> OlUserPropertyType.olNumber).Value
> = 1