+ Reply to Thread
Results 1 to 6 of 6

Auto save additional copy with date as name

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    117

    Auto save additional copy with date as name

    Hi very new to macros so please forgive me if this is either stupid or not possible.

    I have an 'accounts' WB that i store all business transactions on. Previously when ever we have entered new data we simply 'save as' and edit the date to the filename, this ensures back-ups of the file and obviously we can easily go back and see any changes made between versions.Fine no problem, now the thing is as my knowledge of excel has grown im learning the power of Vlookup between WB's however my current method would not work as the vlookup function would always refer to an outdated version of the file, im sure you get the point. So, is there a way keep the file name the same everytime i save the file but also save a duplicate file labelled with the date that its being saved and save to a speceifc folder? thus having back up files everytime we make new entries. I should probably add this is all stored on dropbox and i dont know if this causes a problem?

    Any advice much appreciated.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto save additional copy with date as name

    Try the 'CreateBackupFile()' Macro below. It saves the the backup file in
    the same folder as the 'Active Workbook'. This can be easily modified to suit your needs.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    117

    Re: Auto save additional copy with date as name

    Quote Originally Posted by LJMetzger View Post
    Try the 'CreateBackupFile()' Macro below. It saves the the backup file in
    the same folder as the 'Active Workbook'. This can be easily modified to suit your needs.

    Please Login or Register  to view this content.
    Im so sorry but this is all another language to me. The file is called <AGL Accounts 2013-14> and its location is :Dropbox-AGL-Accounts-2013-14 can anyone help me complete this macro with these details? Thanks in advance.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto save additional copy with date as name

    I am not familiar with how to access 'Dropbox'. You may have to change the 'sPath' below to something like 'D:\Dropbox\' or however you access 'Dropbox' from your computer.
    In the Macro I posted you have to do something like the following:

    Replace:
    Please Login or Register  to view this content.
    With:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    117

    Re: Auto save additional copy with date as name

    Quote Originally Posted by LJMetzger View Post
    I am not familiar with how to access 'Dropbox'. You may have to change the 'sPath' below to something like 'D:\Dropbox\' or however you access 'Dropbox' from your computer.
    In the Macro I posted you have to do something like the following:

    Replace:
    Please Login or Register  to view this content.
    With:
    Please Login or Register  to view this content.
    Thanks for your help! And do I use a hyphen(-) as the separators for file path?

  6. #6
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto save additional copy with date as name

    Quote Originally Posted by alfgrey View Post
    Thanks for your help! And do I use a hyphen(-) as the separators for file path?
    I don't know. I copied the links from your post. My speculation is that you can use a "\" and access 'Dropbox' as a virtual disk attached to your Computer. It will probably take some frustrating trial and error.

    Lewis

+ 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. [SOLVED] How to AUTO SAVE with date stamp after every change but without confirmation
    By suton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-18-2013, 06:05 PM
  2. [SOLVED] auto save when open and adding current date to file
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2012, 01:03 PM
  3. Auto Save a Copy of Excel Dashboard [Every Hour]
    By Seacucumber in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2012, 07:21 AM
  4. Click a button, auto-save a copy of the .XLS file to a specified location?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2011, 12:45 PM
  5. [SOLVED] Auto save file copy with unique filename
    By Allen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 03:25 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