View Single Post
  #2  
Old January 12th 10, 03:09 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_4_]
external usenet poster
 
Posts: 552
Default Assigning Values to Contact UserProperties

Show a relevant code snippet, please.

In your form design, do the custom fields appear on the All Fields tab under
"User Fields in This Item"?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"MWE66" MWE66.44okgm@invalid wrote in message news:MWE66.44okgm@invalid...

I am running Outlook2003.

I added several "new" variables (UserProperties) when creating a
revised form for Contacts viewing (NCDF). The MessageClass for contacts
displayed with the new form (and user variables) is IPM.Contact.NCDF
I ran a (one time)VBA procedure to change the message class of relevant
contacts to IPM.Contact.NCDF
Everything seems to work fine except when I try to assign values to
UserProperties under VBA control.

There are no problems with existing contacts or new contacts created
manually. Forms works fine, UserProperties values are what they should
be. VBA procedures that assign values to UserProperties work fine.

If I create a new contact under VBA control and assign values to
standard variables, that works fine. But it if I create a new contact
using a VBA procedure and assign values to both standard contact
variables and UserProperties, the UserProperties remain Null.

If anyone has any ideas, I would appreciate that feedback.

Thanks


--
MWE66
http://forums.slipstick.com



Ads