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 add integer type user-defined column to inbox?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old May 28th 06, 01:41 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to add integer type user-defined column to inbox?

Maybe a dumb question, but what happens when you add that field to the view manually? Does it appear in the User-defined FIelds in Folder list on the folder's Field Chooser?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Zoom" wrote in message ...
I want to create column of integer data type and add a value to it. if i use
string everything works fine but i got prob with sorting bcoz of the datatype.

I created a custom column by having prop value of my column view as
"http://schemas.microsoft.com/mapi/id/{00020328-0000-0000-C000-000000000046}/myfieldname"
Where myfieldname is the name of the column

and used
..appendChild(newChild:=objXMLDoc.createElement(ta gName:="type")).Text = "i4"

for adding value to the column i used
Set prop = emailitem.UserProperties.Add("HowOld", olText, False, Nothing)

I even tried by using olNumber instead of olText. But no hope. I got the
column but with blank values


 




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
User Defined Field Initial Value Matt Outlook and VBA 1 May 6th 06 06:54 AM
Formatting User Defined Fields Linda in Louisiana Outlook - General Queries 1 April 18th 06 02:26 PM
user defined fields Karl-H. Engesser Outlook - Using Contacts 1 February 9th 06 02:33 PM
Referencing User-Defined Fields Chaplain Doug Outlook and VBA 2 January 13th 06 05:54 PM
Referencing a User-Defined Field Chaplain Doug Outlook - Using Forms 1 January 13th 06 03:54 PM


All times are GMT +1. The time now is 03:48 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.