+ Reply to Thread
Results 1 to 4 of 4

Save backup of workbook before close

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Save backup of workbook before close

    I was hoping somebody had a suggestion for how to solve this backup question.

    I call the macro below from a Workbook_BeforeClose sub; however, if the user has not saved changes before they hit the close then the Sub SaveFile runs and then after the backup save they are then asked do you want to save changes.

    I initially had this sub run with Workbook_BeforeSave, but I don't really want to run this everytime the user selects save.

    Any ideas on how to how the save changes first and then the backup?

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 12-16-2009 at 10:41 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Save backup of workbook before close

    I Use this for a lot of workbooks, when the user closes the workbook, it kicks in, saves it to a Backup Folder and the date it was saved.
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Post Re: Save backup of workbook before close

    Hi Dave,

    Thanks for the help.

    This works great, but it doesn't address the saving of changes. If the user does not select save before they select close then after the backup kicks in they are then asked if they want to save changes yes or no. Is there a way to force the save changes to come first before the backup in lieu of maybe forcing the saved changes with activeworkbook.save.

    I really don't want to force changes being saved in case they really did not want to save their most recent updates.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Save backup of workbook before close

    All they have to do is select no.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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