+ Reply to Thread
Results 1 to 8 of 8

Save by month, delete cumulative backup flies

  1. #1
    Registered User
    Join Date
    08-07-2004
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    62

    Save by month, delete cumulative backup flies

    I have a daily worksheet used to reconcile end of day business sales. Presently, when closing the file it asks if you want to backup the file and yes would be the "standard" reply.

    The backup becomes quite large as it duplicates the entire workbook which adds a new sheet each day.

    What I would like to do is have the backup process generate a copy of the workbook and delete any copy older than 10 days when the backup process runs.

    I would also like to generate a new file named by month that stores all the current month backups and the prior 7 days. When a new backup is added to the file a prior month day would be deleted until only current month files remain in the workbook.

    And, finally, helpful if but not necessary, a button that will show up on the last sheet in the monthly file that will allow you to delete all but the last backup for the month after 10 days.

    The Idea here is that Files need to maintained long enough that errors can be tracked and fixed, and a week is long enough. After that, the files can be deleted as long as there is a copy of things for the accountant.

    As to the rest of the worksheet, I built this for a friend and it is tailored to how he wanted things. However, ideas for improvement are certainly welcome. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Save by month, delete cumulative backup flies

    Other method,
    No more copy of sheets
    by closing workbook or creating new sheet, day automaticly get stored in sheets "Historiek"
    This way 1 year history takes 365 rows ( ok sometimes 366 )

    On Sheet Backup, you can call every excisting day to show up


    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-07-2004
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    62

    Re: Save by month, delete cumulative backup flies

    Quite a lot of effort on this. It works well for saving spreadsheets with a few minor issues cleaned up. I got buried with the spreadsheet itself and didn't really have the time to improve things much beyond that.

    Thanks
    Bill
    Last edited by itsunclebill; 03-13-2018 at 06:34 PM.

  4. #4
    Registered User
    Join Date
    08-07-2004
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    62

    Re: Save by month, delete cumulative backup flies

    Any ideas how the formulas that are on the original sheet can be transferred? The original spreadsheet automatically calculates a number of items and moves a number of totals from day ending to day beginning when a new sheet was created.

    Thanks
    Bill

  5. #5
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Save by month, delete cumulative backup flies

    The calculated items are stored in sheet Historiek
    so by creating Backup on the Backup Sheet, Calculated fields get populated from there

    Kind regards
    Leo

  6. #6
    Registered User
    Join Date
    08-07-2004
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    62

    Re: Save by month, delete cumulative backup flies

    I see the sheet formulas are working. It appears that since a new sheet isn't created that totals moved from the prior sheet to the new sheet automatically in the old spreadsheet will need to accomplish this with a macro that runs when a new sheet is created.

    It seems better to me that this be done when a new sheet gets created than to drag formulas down 365 or 366 lines on the backup sheet.

    Example, on the spreadsheet, the cell labeled "ending sales total" on today's sheet need to be placed into "beginning sales total"
    for the new sheet. Lotto sales need to transfer over, etc.

  7. #7
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Save by month, delete cumulative backup flies

    New exemple,

    create new sheet and see if you mis something on new sheet

    Kind regards
    Leo
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-07-2004
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    62

    Re: Save by month, delete cumulative backup flies

    I haven't had time to check everything as it's pretty detailed. But, what I have checked is great and all seems good. I'm sure if there is an issue with anything I'm sure it can be handled fairly easily.

    Thanks for the interest in helping. I've needed to do something like this for a while and don't get into doing anything regularly. Takes me a while to retrain myself on stuff and it's frustrating to have to go back and figure out why you did something that way in the first place, even when commented. That is why this forum is such a great resource.

+ 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. Save Backup File to Different Location On Save and Exit
    By slindfors in forum Excel General
    Replies: 0
    Last Post: 06-16-2015, 09:01 AM
  2. Macro to Auto save a backup copy in a seperate location OR save file with a pop up
    By kdsanderson30 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-12-2014, 12:38 PM
  3. save:Automatic Backup
    By Zan03 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2013, 12:41 PM
  4. [SOLVED] Summing cumulative daily values for each month then resetting next month
    By JaredZ in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-21-2012, 06:04 AM
  5. [SOLVED] Backup:always create a backup file in the save options
    By Alek in forum Excel General
    Replies: 1
    Last Post: 01-07-2006, 09:25 PM
  6. [SOLVED] Save a BackUp of Workbook
    By Rocky McKinley in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2005, 10:05 PM
  7. [SOLVED] Why don't my latest changes get save in my backup
    By lonsar37 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2005, 04:06 AM

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