View Single Post
  #2  
Old January 10th 07, 02:50 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to show data in a custom field in a folder

Is that added field actually in the item? Does it contain content? Are you
saving the item after adding the new UserProperty?

If you use the Field Chooser to custom the columns in a table view does that
property show up as a field in the folder?

You can examine the items by opening them and selecting Tools, Forms, Design
this form. Go to the All Fields tab and see what's listed for fields in the
item and fields in the folder.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"MeAgin" wrote in message
...
Hi all,



I want to show some custom fields on a mail folder. How to achieve this?



I add a custom property to the mail item when moving to the specific
folder
in my VBA code as,



Set NewField = oNewMail.UserProperties.Add("Type", olText, True)

NewField = loXmlDom.DocumentElement.SelectSingleNode("//type").Text



Also I have added a new column as type in the folder but it is blank for
all
mails.

Please advice.



Thanking in advance.

Nadee







Ads