Outlook Archiving

D

DD

I have a project to develop a VBA application that disables the normal
Outlook (2002) archiving menu item and provides a new menu item to limit
archiving to
5 emails at a time. I can't tell if this is even possible.
Reply to: (e-mail address removed)
 
C

Charles Beauregard [MSFT]

Well, first off you could consider setting this regkey to disable most of
the autoarchive functionality:
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\Preferenc
es]
"DoAging"=dword:00000000

This will remove:
A) Tools / Mailbox Cleanup / AutoArchive
B) Tools / Options / Other / AutoArchive
C) The AutoArchive tab in each folder's properties

This will *not* remove
A) File / Archive... from the menu.

Note that this regkey will only work for Outlook 2003. I cannot comment on
whether support for this regkey will be backported to SP releases of
previous versions of Outlook.

Now, if you also want to remove File / Archive... from the menu, this VB
code should help you get started:

Application.CommandBars("File").Controls("Archive...").Delete

Creating a new menu item to limit archiving to 5 emails at a time is
possible but it will require developing your own algorithm to look through
each folder and each message, and perform a move operation on the items of
your choosing based on criteria of your choosing. It's possible, but not
trivial.

Hope this helps!

--
Charles Beauregard-Tellier
Software Test Engineer
Microsoft Office

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
 

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