+ Reply to Thread
Results 1 to 3 of 3

Copy and rename files without overwriting files

  1. #1
    Registered User
    Join Date
    12-15-2016
    Location
    São Paulo, Brasil
    MS-Off Ver
    2010
    Posts
    2

    Copy and rename files without overwriting files

    Hello,

    I need some help to adjust this code found on the internet.

    I would like that whenever I run the code, new files on the destination folder are never overwritten. The solution seems easy, but I tried a lot and I'm inexperienced in VBA. Please help me.

    File attached.

    Thank you.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by miguel78; 12-16-2016 at 10:03 AM.

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

    Re: Copy and rename files without overwriting files

    Do a google search, "If File Exists excel vba" , there will be lots of results.
    Whatever you use would then be able to use into your code, so if the file exists, then do nothing, if it doesn't exist, then do something.

  3. #3
    Registered User
    Join Date
    12-15-2016
    Location
    São Paulo, Brasil
    MS-Off Ver
    2010
    Posts
    2

    Re: Copy and rename files without overwriting files

    Great. Thank you so much, you really help me a lot.

+ 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] Copy/Rename Multiple files in Excel
    By chris619 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-13-2017, 02:44 PM
  2. My File Rename Macro Always Doesn't Rename the Last Three files in the list
    By Enright in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-02-2016, 03:46 PM
  3. How to copy and rename files in vba by searching multiple folders for files
    By razorace in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 04:21 AM
  4. Replies: 0
    Last Post: 04-19-2012, 03:31 PM
  5. Copy and rename PDF files
    By Teacher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-10-2011, 04:54 PM
  6. Copy files from list and rename
    By uncleslinky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-27-2011, 07:53 AM
  7. [SOLVED] Automatically overwriting files
    By Sherwood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2005, 06:05 PM

Tags for this Thread

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