Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / December 2005

Tip: Looking for answers? Try searching our database.

varible

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joel Allen - 13 Dec 2005 16:47 GMT
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
Sue Mosher [MVP-Outlook] - 13 Dec 2005 17:10 GMT
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.

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

> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks Joel
jaf - 13 Dec 2005 21:42 GMT
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

Signature

John
johnf202 at hot mail dot com

> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks Joel
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.