Results 1 to 7 of 7

How to add 2 features to a file transfer macro.

Threaded View

  1. #1
    Registered User
    Join Date
    01-12-2019
    Location
    Seattle
    MS-Off Ver
    Office 2016
    Posts
    4

    How to add 2 features to a file transfer macro.

    I have the following Macro below and I wonder if anyone can help me modify it to do the following two things:
    • Move to the next line when there's and error. Sometimes when a file is being copied to a folder, someone else has a file with the same name open.
    • Create a new tab with a list of the lines that didn't run due to errors.

    Thank you



    Sub DRILL_XFER()
    '
    ' DRILL PL TRANSFER MACRO
    ' TRANSFER DRILLS AND PLS DAILY DURING CLOSE
    '
    FileCopy "H:\File1 - 2018-12-31.xls", "H:\File1 - 12-2018.xls"
    FileCopy "S:\File2.xls", "H:\File2 - 2018-12-31.xls"
    
    MsgBox "Drill & PL Transfer is Complete"
    
    End Sub
    Last edited by forkenbrock; 01-13-2019 at 04:36 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro code to transfer data to another file
    By RA_Lek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2015, 08:09 PM
  2. Macro to transfer data from multiple workbooks into separate sheets of master file
    By salva7ore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2014, 08:18 PM
  3. Macro to Open a file, transfer data, save and close
    By tforbes75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2011, 11:59 AM
  4. Userform to Control Macro Features. Macro = Search for File Type
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-13-2010, 11:51 AM
  5. macro to transfer data from one file to another
    By sha_ch in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2010, 12:31 AM
  6. filter features+macro
    By excellentexcel in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-09-2009, 10:31 AM

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