+ Reply to Thread
Results 1 to 2 of 2

Copying from multiple workbook to master with references to named sheets

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclamation Copying from multiple workbook to master with references to named sheets

    Hi All,

    So a bit of vba help please and thanks! I'm looking for a macro that will copy and paste the values in a range of cell from the sheets of one workbook to the sheets of another master workbook. I want a macro that will let me select which second workbook to copy from, and then copy the information from the sheets in the second workbook that are named the same as the sheets in the master workbook.

    For example:
    workbooks: MasterWorkbook (MWB), DataWorkbook1 (DWB1), DataWorkbook2 (DWB2)

    The Master Workbook has sheets named A,B,C,D,E,F,G,H DataWorkbook1 has sheets named A,C,D,F, DataWorkbook2 has sheets named B,E,G,H.

    All sheets are formatted the same, the same range of cells needs to be copied for every sheet (should be able to loop this).

    I want the macro in the Master Workbook to ask me to select a workbook (ie. DWB1 or DWB2) and then copy the information from a specific range of cells the sheets in the data workbook to the sheets with the same name in the master (ie. A to A, then C to C, then D to D, then F to F for DWB1).

    I'm not entirely sure where to start as the data going from and to the specific named sheet is important and I'm not sure how to do that.

    Any help would be appreciated!

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying from multiple workbook to master with references to named sheets

    Hi

    It would be great if you that three sample workbook , its make very easy to solve your query perfectly
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    12-20-2012
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Copying from multiple workbook to master with references to named sheets

    I actually managed to figure it out myself using bit and pieces from a bunch of different sources! I'll post the code up for reference when I'm on my main computer, but thanks for offering to help

+ 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. copying similar named worksheets from multiple workbooks into a master workbook
    By bradpeh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2013, 04:41 AM
  2. Copying cells from existing sheets to new row of master sheet in one workbook
    By volcaremos in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-06-2012, 03:53 PM
  3. Replies: 0
    Last Post: 08-28-2009, 05:05 PM
  4. Copying Several Sheets To a New Uniquely Named Workbook
    By soteman2005 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2005, 12:00 PM
  5. [SOLVED] named ranges and copying sheets to another workbook
    By helpwithXL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2005, 12:06 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