varible

  • Thread starter Thread starter Joel Allen
  • Start date Start date
J

Joel Allen

Hi,

Is this right? - It is not working. I just want to make a field equal a
varible that was previously set.

Dim Test

Item.UserProperties("CompanyName").Value = Test

Thanks Joel
 
If Test is a global or module-level variable whose value you set earlier, then you will need to remove the Dim Test statement.

Also, if Item is a contact item, then CompanyName is not a custom property, hence the correct syntax would be Item.CompanyName.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Hi Joel,
Is the company name a value?
"("CompanyName").Value"

Since you said "field" I assume your working a textbox on a form.

Try Item.UserProperties("CompanyName").Text = Test
 
Back
Top