The code you have assumes that all the items are using a custom form that has the Specialty property defined in it. Is that indeed the case? ALso have you checked the actual values in User1 to make sure they're non-blank?

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
"Phyllis Blans" <cdrivanova@gmail.com> wrote in message news:1164834263.427236.116440@80g2000cwy.googlegroups.com...
Ah ... that's probably the problem. I don't have a custom form, I'm
just viewing the fields in a Phone List format (added those columns
into the view so that I can check the work). I did check that User
Field 1 includes the content. It's there ...
So, what would I need to adjust in my code to remove the reference to
the custom form?
Thanks for your help ... it shoudl be simple, but as I said, I'm really
novice with VBA.
Phyllis
> The code you have assumes that all the items are using a custom form that has the Specialty property defined in it. Is that indeed the case? ALso have you checked the actual values in User1 to make sure they're non-blank?
>
[quoted text clipped - 5 lines]
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
Sue Mosher [MVP-Outlook] - 29 Nov 2006 22:15 GMT
You don't need a custom form.You can just add the property using the UserProperties.Add method:
Set newProp = theItem.UserProperties.Add("Specialty", olText)
newProp.Value = theItem.User1
theItem.Save

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
>
> Ah ... that's probably the problem. I don't have a custom form, I'm
[quoted text clipped - 10 lines]
>
>> The code you have assumes that all the items are using a custom form that has the Specialty property defined in it. Is that indeed the case? ALso have you checked the actual values in User1 to make sure they're non-blank?
Phyllis - 30 Nov 2006 00:39 GMT
Yeehaa! Success!
Thanks very much. I really appreciate the quick response!
Phyllis