Filter MAPIFolder

M

Michael Tissington

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

Michael Bauer [MVP - Outlook]

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:
 
M

Michael Tissington

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

Michael Bauer [MVP - Outlook]

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 ?

Assuming you have the folder already:

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

Dmitry Streblechenko

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 said:
Thanks. Will the Items.RawObject also return the recurring appointments ?

Assuming you have the folder already:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top