Discussion:
Adding a value to custom fields
(too old to reply)
Youie
2009-11-24 08:18:13 UTC
Permalink
Hi there,

I have a neat little routine which i've made into a button in Outlook
that turns an email into a task and makes it due today or next week or
next month. All good.

however, I've now adopted a task prioirity scheme that involves me
marking tasks as either priority 1, 2, 3, or 4. I created a custom
field in Tasks to store these values and I can populate the
appropriate priority value (1,2,3 or 4) manually but would like to
know how to do it in my code by having a little dialog box appear
where I can choose either 1, 2, 3 or 4 and then click OK and have the
value stored in the custom field.

Currently, the code that tracks the category on the task looks like
this:

olTask.Categories = "PIPC - Practice" so I don't understand why the
custom field doesn't appear as an attribute of olTask.

Any assistance, please?
Michael Bauer [MVP - Outlook]
2009-11-24 08:34:22 UTC
Permalink
Please see the UserProperties collection.
--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>
Post by Youie
Hi there,
I have a neat little routine which i've made into a button in Outlook
that turns an email into a task and makes it due today or next week or
next month. All good.
however, I've now adopted a task prioirity scheme that involves me
marking tasks as either priority 1, 2, 3, or 4. I created a custom
field in Tasks to store these values and I can populate the
appropriate priority value (1,2,3 or 4) manually but would like to
know how to do it in my code by having a little dialog box appear
where I can choose either 1, 2, 3 or 4 and then click OK and have the
value stored in the custom field.
Currently, the code that tracks the category on the task looks like
olTask.Categories = "PIPC - Practice" so I don't understand why the
custom field doesn't appear as an attribute of olTask.
Any assistance, please?
Youie
2009-11-24 09:02:44 UTC
Permalink
Post by Michael Bauer [MVP - Outlook]
Please see the UserProperties collection.
--
Best regards
Michael Bauer - MVP Outlook
  : Outlook Categories? Category Manager Is Your Tool
  : VBOffice Reporter for Data Analysis & Reporting
  : <http://www.vboffice.net/product.html?pub=6&lang=en>
Post by Youie
Hi there,
I have a neat little routine which i've made into a button in Outlook
that turns an email into a task and makes it due today or next week or
next month. All good.
however, I've now adopted a task prioirity scheme that involves me
marking tasks as either priority 1, 2, 3, or 4. I created a custom
field in Tasks to store these values and I can populate the
appropriate priority value (1,2,3 or 4) manually but would like to
know how to do it in my code by having a little dialog box appear
where I can choose either 1, 2, 3 or 4 and then click OK and have the
value stored in the custom field.
Currently, the code that tracks the category on the task looks like
olTask.Categories = "PIPC - Practice" so I don't understand why the
custom field doesn't appear as an attribute of olTask.
Any assistance, please?- Hide quoted text -
- Show quoted text -
Can I be an ignoramus and ask exactly how I do that?
Michael Bauer [MVP - Outlook]
2009-11-25 10:39:43 UTC
Permalink
You need to modify the property's name:

olTask.UserProperties("whatever").Value="here a new value"
olTask.Save
--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>
Post by Youie
Post by Michael Bauer [MVP - Outlook]
Please see the UserProperties collection.
--
Best regards
Michael Bauer - MVP Outlook
  : Outlook Categories? Category Manager Is Your Tool
  : VBOffice Reporter for Data Analysis & Reporting
  : <http://www.vboffice.net/product.html?pub=6&lang=en>
Post by Youie
Hi there,
I have a neat little routine which i've made into a button in Outlook
that turns an email into a task and makes it due today or next week or
next month. All good.
however, I've now adopted a task prioirity scheme that involves me
marking tasks as either priority 1, 2, 3, or 4. I created a custom
field in Tasks to store these values and I can populate the
appropriate priority value (1,2,3 or 4) manually but would like to
know how to do it in my code by having a little dialog box appear
where I can choose either 1, 2, 3 or 4 and then click OK and have the
value stored in the custom field.
Currently, the code that tracks the category on the task looks like
olTask.Categories = "PIPC - Practice" so I don't understand why the
custom field doesn't appear as an attribute of olTask.
Any assistance, please?- Hide quoted text -
- Show quoted text -
Can I be an ignoramus and ask exactly how I do that?
brightenmyoutlook
2009-11-25 23:09:59 UTC
Permalink
Post by Michael Bauer [MVP - Outlook]
Please see the UserProperties collection.
--
Best regards
Michael Bauer - MVP Outlook
  : Outlook Categories? Category Manager Is Your Tool
  : VBOffice Reporter for Data Analysis & Reporting
  : <http://www.vboffice.net/product.html?pub=6&lang=en>
Post by Youie
Hi there,
I have a neat little routine which i've made into a button in Outlook
that turns an email into a task and makes it due today or next week or
next month. All good.
however, I've now adopted a task prioirity scheme that involves me
marking tasks as either priority 1, 2, 3, or 4. I created a custom
field in Tasks to store these values and I can populate the
appropriate priority value (1,2,3 or 4) manually but would like to
know how to do it in my code by having a little dialog box appear
where I can choose either 1, 2, 3 or 4 and then click OK and have the
value stored in the custom field.
Currently, the code that tracks the category on the task looks like
olTask.Categories = "PIPC - Practice" so I don't understand why the
custom field doesn't appear as an attribute of olTask.
Any assistance, please?- Hide quoted text -
- Show quoted text -
Can I be an ignoramus and ask exactly how I do that?- Hide quoted text -
- Show quoted text -
Just out of curiosity, what drove the need for a custom Task?
You can drag & drop an email into the Task folder to create a new Task
from an email.
And there is a (1,2,3, granted not a 4th) High, Normal, Low priority
assignment field on the standard Task form?

Brian McOutlook
www.brightenmyoutlook.com

Loading...