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

cdo Filtering according to Categories



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 4th 08, 03:45 PM posted to microsoft.public.outlook.program_vba
Bert_Bert[_2_]
external usenet poster
 
Posts: 32
Default cdo Filtering according to Categories

Hi,
i have a big trouble trying to filter only Messages having certain category.

I succeeded in filtering String, boolean or MessageClass types of fields.

For example string:
Set oFiltr = oMessages.Filter
oFiltr.Fields.Add myproptag, 8, val

and works perfect.

Also boolean works fine
oFiltr.Fields.Add name, 11, True


However if I want to filter Categories, neither of the following works:
oFiltr.Fields.Add proptagcateg, 8192, "category"
oFiltr.Fields.Add proptagcateg, 8, "category"
oFiltr.Fields.Add proptagcateg, 8192, field_categories_containing_my_one
oFiltr.Fields.Add proptagcateg, 8, field_categories_containing_my_one
the Messages.Count skips to zero instead of expected number

Do I have at least some workaround for the solution to work quickly enough
(I am afraid of Outlook object model, Restrict would work I guess) if there
happen to be more items in the given category ?


Please help me, there are only examples with strings but it is not possible
to find a single example for keyword types.


thanks a lot for any hint
 




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
Programming custom Categories into Master Categories List John E. Outlook - Using Forms 3 March 30th 09 11:06 AM
Public folder calender categories vs user calander categories Help me Outlook - Calandaring 5 November 2nd 07 07:44 AM
Outlook 2007 Categories are a combo of Categories & Labels in 2003 Scott Sherman Outlook - Calandaring 0 February 13th 07 04:23 AM
Tasks categories. Unable to modify another user's categories. Tommy Outlook - Installation 0 August 9th 06 04:43 PM
Filtering Categories On Shared Calendar Eloise Outlook - Calandaring 0 February 7th 06 12:17 AM


All times are GMT +1. The time now is 06:15 AM.


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.