Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Assigning Values to Contact UserProperties (http://www.outlookbanter.com/outlook-vba/98911-assigning-values-contact-userproperties.html)

MWE66 January 12th 10 02:35 PM

Assigning Values to Contact UserProperties
 

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


Sue Mosher [MVP][_4_] January 12th 10 03:09 PM

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





All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com