The folder autoarchive settings are stored in a hidden message in each
folder. The settings themselves are not accessible from the Outlook object
model. You have to use a lower level API such as CDO 1.21 (optional
installation), Extended MAPI (C++ or Delphi only) or a MAPI wrapper such as
Redemption (
www.dimastr.com/redemption) to do what you want.
To see an example of setting a folder's archive settings using CDO 1.21 see
http://www.cdolive.com/cdo5.htm#ChangeAutoArchive
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Peter" wrote in message
...
I'm configuring a company wide autoarchive policy in outlook 2003.
So I set autoarchive on with office policies from ORK
I set the default archive path and filename by a registry setting at logon
However there is one problem.
I want to set each folder of a mailbox to the auto archive settings
automaticly.
When a user create a new (Sub) foler in the mailbox, this new folder must
also get the auto archive setting automaticly.
In the autoarchive field in extra--otions--....-- autoarchive is a
button
whice set the auto archive settings to each folders in the mailbox.
Can any of you help me to create a VBA script whice has the same
functionality as the button.
So I can run this script everytime outlook starts.