+ Reply to Thread
Results 1 to 3 of 3

Copy a sheet to the main workbook if workbook name matches

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Copy a sheet to the main workbook if workbook name matches

    Hello everyone,

    I have a lot of .xlsx reports in the folder C:\Reports. The names are like r_ABC, r_DEF, r_GHI, etc.

    Now I need to copy a sheet from these Excels files to their related main workbook in the folder C:\Main. These workbooks have the names such as ABC, DEF, GHI. I want the report 'r_ABC.xlsx' to be copied (1st sheet) to the ABC workbook, report 'r_DEF.xlsx' to be copied to the DEF workbook. So I check the file names and if they match then I just make a copy across.

    Is there a clever macro to allow me to do this easily? Otherwise I can do manually although there are over 40 files to do repeatedly one by one.

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: Copy a sheet to the main workbook if workbook name matches

    I am looking for some great assistance here

  3. #3
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019
    Posts
    436

    Re: Copy a sheet to the main workbook if workbook name matches

    Where are our people in this forum?

+ 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 data from Workbook 2 that matches option in Workbook 2
    By Simone Fick in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2017, 08:28 AM
  2. Replies: 0
    Last Post: 01-08-2016, 02:36 AM
  3. Automatically Copy Data from Workbook - Main Workbook
    By BigBobBobson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2015, 06:59 AM
  4. [SOLVED] VBA to copy data from one workbook to another main workbook
    By hate0lif3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2014, 02:52 AM
  5. [SOLVED] how to copy from one workbook to other when the main one have several filters
    By luis6777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2014, 10:46 AM
  6. Copy information from other workbook to main workbook help 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2013, 08:09 PM
  7. [SOLVED] Copy Values From Each Workbook in Folder to a Single Sheet in New Workbook +Workbook names
    By Arsham24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:42 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