+ Reply to Thread
Results 1 to 6 of 6

Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Workbk

  1. #1
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Workbk

    Dear All,

    Kindly help for the following requirements.

    I have multiple (8) excel workbooks in a folder. such as India, China, Australia, USA, UK, Germany, France, Italy and each workbook has 3 worksheets. (A, B, C)


    Requirement as follows:

    1. I have a consolidation sheet called "Master", which has 3 worksheets (A, B, C) as same as excel workbooks, which have been kept in the folder.

    2. Now, i want to copy "A" worksheets data from "India, China, Australia, USA, UK, Germany, France, Italy" and consolidate in "Master" consolidation workboook, "A" Worksheet. The data range starts from "A4".


    3. Like wise, i want to copy "B" and "C" data from "India, China, Australia, USA, UK, Germany, France, Italy" and and consolidate in "Master" consolidation workboook, "B" and "C" respective Worksheet. The data range starts from "A4".


    Kindly do the needful.

    Regards

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Wor

    when the data is copied between india and master, does the range start from A4 or A1? (on any sheet A,B,C). in other words where does the data start on the master sheet A (or B,C) range?

    maybe upload your master workbook, so i can take a peek at the structure?

  3. #3
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Wor

    Quote Originally Posted by dmcgov View Post
    when the data is copied between india and master, does the range start from A4 or A1? (on any sheet A,B,C). in other words where does the data start on the master sheet A (or B,C) range?

    maybe upload your master workbook, so i can take a peek at the structure?
    Dear Mr. dmcgov

    The range starts from A4 in both copied area and paste area also. Meaning... The data starts from A4 in India (A, B, C in three worksheets) and paste the data in Master Workbook is also A4 for A, B and C


    Regards

    Regards

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Wor

    sorry it took so long to do this, but give it a shot. i put it in a button on the master sheet:

    Please Login or Register  to view this content.
    let me know if this works for you.

  5. #5
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Wor

    Dear Mr. dmc,

    Thanks for your time and efforts for my request. Basically I have 3 things to discuss and acquire your guidance.


    1. Very first line of the code
    Dim x, y, z
    - what x, y, z represent?

    2.
    x = Array("India", "China", "Australia", "USA", "UK", "Germany", "France", "Italy")
    - The code acts for getting access for only these mentioned 8 workbooks. Without mentioning the files name, Is there any other way to get access, like " If I click "Command Button", it should lead to open a window and I will choose files as many as I want?


    3. When I use the code, which you have shared, I am facing "Runtime error - 9 - subscript out of range". Debug exactly on
    Set wbCountry = Workbooks(x(y) & ".xlsx")
    Kindly help me on this request.

    Regards

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Consolidate "Specific Name" worksheet data from multiple workbooks and into Master Wor

    on the first question, that is sloppiness on my part, please delete the line
    on the second question, that's a lot of extra code to multiselect. wish you had said that to start with.
    on the third, put this line before the set wbCountry and tell me what the result is

    Please Login or Register  to view this content.

+ 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. Replies: 7
    Last Post: 04-11-2018, 11:17 PM
  2. Replies: 1
    Last Post: 03-09-2016, 12:17 PM
  3. VBA to consolidate specific data from multiple workbooks to a master workbook
    By Blastaway12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2014, 04:39 PM
  4. Replies: 1
    Last Post: 11-12-2013, 09:23 AM
  5. Creating a searchable "master" excell workbook based on multiple other workbooks
    By mikej_88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 05:21 PM
  6. Linking multiple workbooks to one "master" workbook.
    By AngryCPA in forum Excel General
    Replies: 1
    Last Post: 12-28-2012, 07:05 AM
  7. Consolidate multiple tabs into a "Summary" one and ovewrite past data
    By dim06 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2012, 07:45 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