Discussion:
Copy a Search Folder to a *.pst file?
(too old to reply)
Edward Beach
2010-03-23 23:32:18 UTC
Permalink
Due to space limitation with my exchange server I move mail older than
a month into a pst file via a vba macro. I would like to move the
Search Folders as well but can't find the syntax to copy a search
folder. I'm using Outlook 2007, can anybody help?

Thanks.
Ken Slovak - [MVP - Outlook]
2010-03-24 12:58:12 UTC
Permalink
You can use code set up a new search folder with identical restrictions in
your PST file, but you can't read the search folder search terms from the
existing search folder using Outlook object model code. So you'd need to
know already what search terms are being used and then create a folder with
those terms.

It will be easier and faster for you to note down the terms from the folder
of interest and then just create it manually.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by Edward Beach
Due to space limitation with my exchange server I move mail older than
a month into a pst file via a vba macro. I would like to move the
Search Folders as well but can't find the syntax to copy a search
folder. I'm using Outlook 2007, can anybody help?
Thanks.
Dmitry Streblechenko
2010-03-24 21:56:28 UTC
Permalink
<plug>
You can use RDOSearchFolder.SearchCriteria.AsSQL in Redemption to read the
search criteria on one search folder and set the same criteria on anothe
rsearch folder
<plug>
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by Ken Slovak - [MVP - Outlook]
You can use code set up a new search folder with identical restrictions in
your PST file, but you can't read the search folder search terms from the
existing search folder using Outlook object model code. So you'd need to
know already what search terms are being used and then create a folder
with those terms.
It will be easier and faster for you to note down the terms from the
folder of interest and then just create it manually.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by Edward Beach
Due to space limitation with my exchange server I move mail older than
a month into a pst file via a vba macro. I would like to move the
Search Folders as well but can't find the syntax to copy a search
folder. I'm using Outlook 2007, can anybody help?
Thanks.
Loading...