Outlook Archiving

  • Thread starter Thread starter DD
  • Start date Start date
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)
 
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.
 
Back
Top