+ Reply to Thread
Results 1 to 2 of 2

Circular Archive

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,910

    Circular Archive

    Circular Archive

    Backups are important. There are many programs to backup your data. Some of them will save only the latest version, some of them also save previous versions. I use both systems. The system that backs up only the latest copy is easier to recover.

    If your backup system saves previous versions, then you probably do not need this utility, if it saves only the latest version, then read on.

    A backup of the most recent version is important in case of a disk crash or if you inadvertently delete the file and can’t recover it.

    There is a vulnerability to this system in that if the file gets corrupted and you back it up, you now have a backup of a corrupted file. There may also be some other reasons that you might also want to keep several versions of recent copies.

    You could make a copy of the file with a date stamp on it and save it to the archive. This way you will have every version of the file ever created. This archive will grow forever. Chances are you might not be interested in the version that is a year old.

    Although I backup all my files, there are only two that I archive: a checkbook program that I archive weekly and a weight management program that I archive daily.

    What this program does is provide what I call a “Circular Archive.” That is, you can specify how many archive files you want. The program overwrites the oldest one and moves it to the bottom of the queue. I keep the latest 5 copies of each of my archives.


    To use this program, you need three things:
    • The directory name where you wish to store the archives
    • A file name “template” using wildcards. For example, Backup ??.xlsb
    • Actual archive files
    o Go to the directory where you want the files and create as many files with the template name as you need. For example if you want 5 archives, create:
    Backup 01.xlsb, Backup 02.xlsb, Backup 03.xlsb, Backup 04.xlsb and Backup 05.xlsb.
    o It does not matter that these are blank; they will be overwritten eventually.
    You have to embed this code into the file you want to archive. You will need both the oldest file code and the ArchiveFiles code into a module. Change the first two lines in the ArchiveFiles subroutine to suit your needs.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,910

    Re: Circular Archive

    Deleted duplicate posting.
    Last edited by dflak; 01-21-2024 at 09:35 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Archive row from sheet1 to archive
    By jamie123456 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2017, 04:10 PM
  2. Excel VBA Archive Monthly Account Returns to an Archive File
    By cmarenco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2016, 10:12 PM
  3. Replies: 2
    Last Post: 02-23-2014, 06:06 PM
  4. Replies: 1
    Last Post: 08-21-2007, 07:22 PM
  5. trying to archive need suggestions
    By Bryan J Bloom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-02-2005, 06:30 PM
  6. Need Archive help
    By Bryan J Bloom in forum Excel General
    Replies: 0
    Last Post: 11-02-2005, 06:20 PM
  7. [SOLVED] Need Archive help
    By Bryan J Bloom in forum Excel General
    Replies: 0
    Last Post: 11-02-2005, 06:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1