Here's some code that I have been using. Replace "Short Term Archive" with the name of the .pst file that you want to store messages in. Enjoy.
Sub ClearInbox()
On Local Error Resume Next
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.