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 Forms / April 2005

Tip: Looking for answers? Try searching our database.

Assign Task Item Company field value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
seiscons - 22 Apr 2005 16:58 GMT
I am building a task form with a Company field and trying to fill the
field when creating a task for a particular contact using VBScript but
am unable to access the Company field.  In VBA when I Set a variable to
a new Task item it does not have a Company property.  Neither can I
find a Company property for a Task Item in the Object Browser.  How can
I therefore load the field.

In VBScript if I add a Company field to a Task form and create a new
task then:

Set myInspector = application.ActiveInspector
Set myItem = myInspector.CurrentItem
myItem.Company = "Company Name"

it does not work as the Task item doesn't have that propery.

Tasks definately have a Company field and I have found a post by Sue
Mosher saying that this can be done but I haven't been able to locate a
code sample.  Can annyone help please?

Seiscons
Sue Mosher [MVP-Outlook] - 22 Apr 2005 19:50 GMT
You must not have looked too hard at the object browser. The correct property name is Companies.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>I am building a task form with a Company field and trying to fill the
> field when creating a task for a particular contact using VBScript but
[quoted text clipped - 17 lines]
>
> Seiscons
 
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



©2008 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.