Outlook Archive to PST Files by Date Range VBA Script?

Status
Not open for further replies.

kjv1611

New Member
Outlook version
Outlook 2016 32 bit
Email Account
POP3
I hope I've simply overlooked a good option and someone can point me to it. Rather than needing to write up the whole script, here's what I would like to do:
  1. Archive items for every 2 weeks or every month to a PST file for that timeframe.
  2. Ideally, then zip that PST file to a totally separate location
  3. Ensure the archive PST files are not still linked to Outlook at the end of each archive
I currently do this for one email address that is essentially at that point a backup for that address. I manually archive items every quarter (90 days or 3 months).

I have a new address which will be substantially larger, and is really only being used as a backup. That is why I'd like to do this ever 2 weeks to a month, automate it, and zip the backup files.

Is there any even skeleton of a script out there (VBA or otherwise) that could handle this?

Thanks for any references or ideas.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Are you using AutoArchive or the manual archive method? You really only need to script #2... do you keep adding to the archive.pst or create a new one with each archive? ( its easier to find and manage mail if you have fewer pst files and the data files can hold up to 50 GB of mail - but I'd try to limit it to around 10 Gb. )

i don't think i have a macro or script for #2, but its easy enough to do. AutoArchive can handle #1, the pst should be released after archiving, but if not, that is doable with a script too.

If you wanted to use a macro... Use a Macro to Move Aged Email in Outlook - but i would use AutoArchive.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
D Add data in archive.pst to outlook.pst Using Outlook 4
H Opening .PST archive files in Outlook 2007 Using Outlook 10
A Does Outlook import Gmail Archive? Using Outlook 1
skylark53 Archive a single Outlook 2013 folder tree Using Outlook 5
K Change the default Archive location via GPO in Outlook 2010 Using Outlook 3
J Outlook 2007 Archive Using Outlook 1
R [outlook-users] Messages won't archive Using Outlook 5
A Outlook 2007 archive folders and files Using Outlook 10
S Outlook 2010: How do you enable Contacts' Activities to search archive folders Using Outlook 6
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
A Reminder duplication Outlook and Outlook.com Using Outlook.com accounts in Outlook 5
F Moving Outlook to new PC Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3
Ken Pascoe Outlook Categories Quick List Using Outlook 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 1
talla Can't open Outlook Item. Using Outlook 0
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0
P Importing other e-mail accounts into Outlook Using Outlook 1
J Read Outlook Form fields Outlook VBA and Custom Forms 3
B Inconsistent handling of message read/unread status by Outlook Using Outlook 3
R Rogue Outlook Rule ? Using Outlook 2
S vba outlook search string with special characters Outlook VBA and Custom Forms 1
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
U Outlook 2019 VBA run-time error 424 Outlook VBA and Custom Forms 2
K Outlook 2019 Randomly Disconnecting from Gmail Servers Using Outlook 8
P Outlook calendar and contacts sync problem-outlook disconnects Using Outlook.com accounts in Outlook 2
HarvMan Toggle between calendar and email in Outlook 365 Using Outlook 7
V Outlook error 500 Using Outlook 2
F Email being marked as Spam by Gmail and not being visible in Outlook Using Outlook 5
S Mac Outlook 365 Questions Using Outlook 1
M Outlook calendar is missing Using Outlook 2
G Save and Rename Outlook Email Attachments Outlook VBA and Custom Forms 0
G Trigger script without restaring outlook Outlook VBA and Custom Forms 7
T Have you written an articles about Outlook? Using Outlook 3
V Compound IF, OR, AND in Outlook form Outlook VBA and Custom Forms 4
A Any way to make Outlook Calendar invitations look right to Gmail/Google Calendar users? Using Outlook 3
R Outlook 365 update sets delete from server flag Using Outlook 1
M How to setup outlook after importing old account information - Entering email account info creates with "(1)" after the account! Using Outlook 1
P Prevent Outlook 2016 from using DASL filter Using Outlook 4
I Button PDF in Outlook Contact custom form Outlook VBA and Custom Forms 1
G VBA to save selected Outlook msg with new name in selected network Windows folder Outlook VBA and Custom Forms 1
X Outlook automation pull from PDF Using Outlook 5
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
M Gmail address associated with Outlook on new phone Using Outlook 9
D Cannot populate certain UserProperties in Outlook from Excel Outlook VBA and Custom Forms 2
F Excel VBA to move mails for outlook 365 on secondary mail account Outlook VBA and Custom Forms 1
G Outlook 2016: Want IMAP Data Files on My D: Drive and Not C: Drive Using Outlook 1
V Validating Outlook form with "OR" and "AND" Outlook VBA and Custom Forms 1
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1

Similar threads

Top