Custom Field for Mail items

  • Thread starter Thread starter R Avery
  • Start date Start date
R

R Avery

I have been trying to set up a custom field for mail items which would act
as a property of an email (e.g. Sender, Date Received, etc.) that would
display right next to the Sender in the Outlook mailitem list window, and
which I could sort on. Basically I just want to assign a tag (manually) to
every email in such a way that i could easily see which email belongs to
what.

While not my particular project, this would be useful for assigning "Company
Name" to an email so that you could quickly sort your emails by Company. An
essential part of this is that i must be able to (relatively) quickly enter
tag a piece of information to an email.

I have met with much failure in this project. Is there anyway to do what i
am thinking? Any help would be greatly appreciated.

Thanks!
 
This is actually pretty easy to do with a table view. Right-click the column
headers, choose Field Chooser, then create the field with the New button.
Drag the new field to the column headings to add it to the view.

Then (this is the piece you're probably missing), choose View | Current View
| Customize Current View | Other Settings. Check the box for "in-cell
editing."

You should now be able to click in the Company Name column for any message
and add the text you want.
 
Actually, i have another question. This solution is exactly what i need,
but is there a way to script the toggling of "in-cell editing", so that i
can bind the macro to a button?

I looked around in the object browser in the Outlook library for it to no
avail... Is there something I am missing, or is it not possible? Any help
would be appreciated!
 
Yes, if you are using Outlook 2002 or 2003, using the View.XML property.

Any reason why you can't just turn on in-cell editing and leave it on?
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



R Avery said:
Actually, i have another question. This solution is exactly what i need,
but is there a way to script the toggling of "in-cell editing", so that i
can bind the macro to a button?

I looked around in the object browser in the Outlook library for it to no
avail... Is there something I am missing, or is it not possible? Any help
would be appreciated!
 
Yes, there is a reason, although it is not very important... When i click
on a message, sometimes i do not want it to automatically go into
field-editing mode, and i will mostly be filling in this information in big
batches, and do not need the in-cell editing most of the time. However, I
am sufficiently lazy to always find a programmatic way of saving me 10
keystrokes ;D

Thanks for your help!
 
Well, have fun with View.XML then. I'll let you be the judge of whether it's
worth the effort to dive into the XML coding of a view.
 
Back
Top