Advanced Archiving

  • Thread starter Thread starter Lamaketta
  • Start date Start date
L

Lamaketta

Hi, I would like to do the following:

I want to keep email in my personal folders for 1 week and the archive
to a .pst file which may or may not already exists.

This .pst file must have the same folders as my personal folders and a
new file for every month has to be created (e.g. June 2006 = 2006_06).

Do I need vba for this or can it be done otherwise?
Does anyone have a code from which I can make a good start?

I can do some things in Excel vba, but wouldn't know where to start in
Outlook.

Thanks for any suggestions!
 
Am 10 Jul 2006 06:12:17 -0700 schrieb Lamaketta:

You can do that with VBA. If you´re familiar with Excel VBA then you won´t
have problems with OL VBA. All methods etc. you can find in the Object
Browser, from there´s also help available via F1.

In the Application_Startup event you can search items with the Restrict
function or AdvancedSearch. For both an example is available in the help
file. Search for the CreationTime property.

If items are being found then create the folder, loop backwards through the
result collection and the item´s Move function.

The folder´s name would be e.g. Format(Date, "yyyy_mm")
 
Back
Top