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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

if statement 3
NULL 6
Using Access to obtain E-mail address 5
format 4
delete query with custom form 1
variable 5
split 3
Appending The Subject Line In A Forwarded Message, Office 2007 0

Back
Top