+ Reply to Thread
Results 1 to 3 of 3

Combine data range from multiple workbooks into one worksheet with additional variable

  1. #1
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    Combine data range from multiple workbooks into one worksheet with additional variable

    Hello, I have searched for a solution to this requirement in the many examples which exist but can't find one that does what I need exactly and my vba skills are not good enough to adapt. I would greatly appreciate help from the excel expert community.

    I'm trying to combine several BOM files into one worksheet which I can then use with a pivot table. All workbooks are located in one folder. The source workbooks are based upon the existence of several top level part no BOMs - each contains the enquiry date and top level part no in specific cells (A1 & B6) and then the BOM itself starts at row 12 in cells B12:ARx where the number of rows is a variable but the relevant rows always have a number in column B. If there isn't a number in column B from row 12 then the data isn't required. There is only one worksheet containing the BOM for a specific top level part number in each workbook.

    The sequence would be;

    1. Value of cell A1, B6 and data in range B12:ARx copied.
    2. Data pasted into workbook containing the macro (which is located in a different folder to the source data workbooks) such that Cell values of A1 & B6 are repeated on each row pasted. Data from workbook 2 would be pasted under data from workbook 1 etc.
    3. Close source workbook and open next workbook, repeat until all workbooks have been processed in the same way.

    Please could somebody get me started with this or point me in the right direction?

    The code below works slightly differently but may be a useful starting point;

    Please Login or Register  to view this content.

    Thank you,

    Jess

  2. #2
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    Re: Combine data range from multiple workbooks into one worksheet with additional variable

    Here's one example of the source data as attached.

    Thank you for looking and any help appreciated.

    Jess
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-23-2010
    Location
    Suffolk, England
    MS-Off Ver
    Office 365
    Posts
    271

    Re: Combine data range from multiple workbooks into one worksheet with additional variable

    Hello, is anyone willing to help with this please or suggestion of a better way to ask?

    Thank you

+ 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] Compiling a variable range from multiple workbooks into 1 single worksheet
    By Geoff. in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-14-2014, 02:19 PM
  2. Need to combine data from multiple worksheets in multiple workbooks into 1 worksheet
    By ginric99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2013, 07:58 AM
  3. How to combine multiple workbooks into one worksheet?
    By eajustin15 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2013, 02:42 AM
  4. Replies: 6
    Last Post: 04-18-2012, 02:49 PM
  5. combine data from multiple workbooks to a single new worksheet
    By ame in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2011, 08:12 PM
  6. Replies: 0
    Last Post: 09-21-2011, 11:09 AM
  7. Combine contents of multiple workbooks into one worksheet
    By EMG03 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-24-2005, 08:05 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