+ Reply to Thread
Results 1 to 5 of 5

Not getting time stamp and previous backup files

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Not getting time stamp and previous backup files

    Hi friends,
    The code is working fine and taking the backup of the file but I am not getting a time stamp in a file name in backup folder on ‘C’ drive. Secondly it replaces the previous backup file which I don’t want because if there is something is wrong in the latest file then I want to use the previous correct file. So I don’t want to replace the previous backup file while taking the backup of the file. There may be several files with different date and time stamp in the backup folder. I will delete the unnecessary extra files from the backup folder manually.

    The code is:

    Please Login or Register  to view this content.
    Any help will be appreciated.

    Thanking you in anticipation.
    Sincerely,

    mso3

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Not getting time stamp and previous backup files

    Hi use the Now function rather than Date

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Not getting time stamp and previous backup files

    Hi fredlo2010,
    Thank you for your response. I want the date and time stamp in a file name. So I used date in the code. What is the solution to keep all the back up files.

    Thank you.

  4. #4
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: Not getting time stamp and previous backup files

    Look at the difference between "Date" and "Now"

    Date will give you only date and no time

    http://www.classanytime.com/mis333k/sjdatetime.html

    Thanks

  5. #5
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Not getting time stamp and previous backup files

    Hi fredlo2010,
    Thank you for clearing my confusion between date and now function.

    It's working fine and saveing all the previous backup files with date and time stamp in a file name. This much I want to achieve.

    Thank you for solving my problem.

    I appreciate you for the same.

    Thank you and have a nice day.

+ 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. Computer time stamp -> excel time stamp
    By j.petrut in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2014, 05:49 PM
  2. How to get time stamp and user name stamp
    By eskains in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-07-2013, 09:44 AM
  3. open csv files, do time stamp difference and paste result
    By chi11 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-04-2012, 02:32 PM
  4. [SOLVED] Where is the location for backup files
    By Bill in forum Excel General
    Replies: 1
    Last Post: 06-25-2006, 02:20 PM
  5. command to Backup all my files
    By Param in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-06-2006, 01:00 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