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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Filter MAPIFolder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 23rd 09, 10:22 PM posted to microsoft.public.outlook.program_addins
Michael Tissington[_3_]
external usenet poster
 
Posts: 2
Default Filter MAPIFolder

How do I apply a filter to an Outlook MAPIFolder to only return my
Recurring Appointments ?
  #2  
Old January 24th 09, 04:30 PM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Filter MAPIFolder


Assuming you have the folder already:

Dim Result as Items
Folder.Items.IncludeRecurrences=True
Set Result=Folder.Items.Restrict("[IsRecurring]=True")

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Fri, 23 Jan 2009 13:22:37 -0800 schrieb Michael Tissington:

How do I apply a filter to an Outlook MAPIFolder to only return my
Recurring Appointments ?

  #3  
Old January 24th 09, 07:15 PM posted to microsoft.public.outlook.program_addins
Michael Tissington[_3_]
external usenet poster
 
Posts: 2
Default Filter MAPIFolder

Thanks. Will the Items.RawObject also return the recurring appointments ?

On 01/24/2009 07:30, Michael Bauer [MVP - Outlook] wrote:
Assuming you have the folder already:

Dim Result as Items
Folder.Items.IncludeRecurrences=True
Set Result=Folder.Items.Restrict("[IsRecurring]=True")

  #4  
Old January 25th 09, 05:02 PM posted to microsoft.public.outlook.program_addins
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Filter MAPIFolder



What is Items.RawObject? However, you might simply try it out.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Sat, 24 Jan 2009 10:15:56 -0800 schrieb Michael Tissington:

Thanks. Will the Items.RawObject also return the recurring appointments ?

On 01/24/2009 07:30, Michael Bauer [MVP - Outlook] wrote:
Assuming you have the folder already:

Dim Result as Items
Folder.Items.IncludeRecurrences=True
Set Result=Folder.Items.Restrict("[IsRecurring]=True")

  #5  
Old January 26th 09, 06:17 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Filter MAPIFolder

I think so. You can easily veify that in OutlookSpy (click Script Editor,
paste the script, click Run).

set Items = Application.ActiveExplorer.CurrentFolder.Items
Items.IncludeRecurrences=True
Set Result = Items.Restrict("[IsRecurring]=True")
BrowseObject(Result.RawTable)


--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Michael Tissington" wrote in message
...
Thanks. Will the Items.RawObject also return the recurring appointments ?

On 01/24/2009 07:30, Michael Bauer [MVP - Outlook] wrote:
Assuming you have the folder already:

Dim Result as Items
Folder.Items.IncludeRecurrences=True
Set Result=Folder.Items.Restrict("[IsRecurring]=True")



 




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
MAPIFolder.get_Folders and Exchange mwebb Add-ins for Outlook 7 February 15th 08 12:55 PM
Why don't I need a MapiFolder object? Carol G Outlook and VBA 5 January 17th 07 06:38 AM
How to add a UserProperty to a MAPIFolder? Jeff Outlook and VBA 4 November 8th 06 11:10 PM
Help -Outlook.MAPIFolder, VBA macros lerneree Outlook and VBA 1 September 6th 06 01:59 PM
Outlook.MAPIFolder, VBA macros lerneree Outlook - Using Forms 0 September 6th 06 11:18 AM


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