infact in the messages view of outlook 2003 i enabled the following columns
to be shown.
Subject, to, From, Date and Attachment Count. i can see the column there but
values of each item is just empty though i set the property value as well.
any clue
here is my code of folder change
Dim objFolder As Outlook.MAPIFolder
Set objFolder = m_olApp.ActiveExplorer.CurrentFolder
Dim item As MailItem
Dim nCount As Integer
For Each item In objFolder.Items
Dim property As ItemProperty
Set property = item.ItemProperties.Add("ItemCount", olNumber, True)
property.Value = item.Attachments.Count
MsgBox property.Value
Next
Msgbox shows the right value but in outlook 2003 the column is empty.
Thanks,
i am doing this in Explorer.FolderSwitch . i think i better do it before the
items are rendered . ? any ideas. i also noticed that if i do it in before
folder change event. the very first item has a vlaue of this field otehr
items doesn't
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"msnew.microsoft.com" <danish...@gmail.com> wrote in message
news:eHklUKvW...@TK2MSFTNGP10.phx.gbl...