A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to show data in a custom field in a folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 10th 07, 11:22 AM posted to microsoft.public.outlook.program_vba
MeAgin
external usenet poster
 
Posts: 6
Default How to show data in a custom field in a folder

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
  #2  
Old January 10th 07, 03: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







 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem copying User1 data to custom-defined field Phyllis Blans Outlook and VBA 4 November 30th 06 01:39 AM
Copying Data form user field to custom field [email protected] Outlook - Using Contacts 1 September 4th 06 07:32 PM
Custom calendar: show data from other calendars? [email protected] Add-ins for Outlook 13 May 6th 06 05:15 AM
How to access custom field in Custom Form by C# Minh Nguyen Outlook - Using Forms 3 April 24th 06 04:32 PM
Populate Company field from Contact field in custom task form Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:37 PM


All times are GMT +1. The time now is 12:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.