Assign Task Item Company field value

S

seiscons

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
 
S

Sue Mosher [MVP-Outlook]

You must not have looked too hard at the object browser. The correct property name is Companies.
 

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

Top