+ Reply to Thread
Results 1 to 3 of 3

Copy and Move files and folders (Date-Time)

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Copy and Move files and folders (Date-Time)

    Hi.

    I have code to copy/move a file folder other destination, but i need copy only it file has date and time different or date equal and time different to destination file.

    if the source file is with the date and time iqual the file on the local destination, not need copy.
    Please Login or Register  to view this content.
    Exemple:
    FileA in OriginA has date and time equal FileA in OriginB, not copy.
    FileA in OriginA has date equal, time different FileA in OriginB, copy.

    thanks
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Copy and Move files and folders (Date-Time)

    Hi marreco,

    You can use the below code to get last modified date of file and then compare the same with file that exists in OriginB.

    Please Login or Register  to view this content.

    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Copy and Move files and folders (Date-Time)

    Hi, thank you for help.

    i haven't time free to test.

+ 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. Use Excel VBA to Copy multiple files from different source folders to different folders
    By mm1234mail in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2014, 01:17 PM
  2. Replies: 1
    Last Post: 09-12-2013, 09:23 PM
  3. How to Move specific files to folders with VBA
    By EnzioL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2012, 06:46 AM
  4. Create folders and move and copy files into that folders
    By vijaybharthi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-31-2010, 04:01 AM
  5. Create Folders and Move Files Using VBA/MACRO
    By cjconnor24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2010, 07:20 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