+ Reply to Thread
Results 1 to 8 of 8

Populate Master Sheet with data from other sheets in workbook...

  1. #1
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Populate Master Sheet with data from other sheets in workbook...

    I'm sure this is easy, but I can't see how to do it the way that I want it. I have attached a mock spreadsheet. It only has four columns.... I have multiple tabs (sheets) with the same data headers... I want the data I enter in the worksheets (LOCATION1, LOCATION2, LOCATION3) to populate a master sheet in the same workbook (MASTER ACCOUNTS), in the order that the tabs are in the workbook.

    The "HOW FORMATTED MSTR SHOULD LOOK" tab is the what I'm going for if the autopopulate worked the way I envision it.

    This can't be as hard as I've made it. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,684

    Re: Populate Master Sheet with data from other sheets in workbook...

    Try the below code....

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Populate Master Sheet with data from other sheets in workbook...

    First of all SixthSense... I appreciate you even taking the time to look at my issue. I apologize in advance for not knowing Excel better, but I have no idea what to do with the code you sent me. can you give me a more thorough set of instructions?

    Again I'm sorry... just obviously not as versed in Excel as you are...lol. Thanks again for your time.

    Marty

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,684

    Re: Populate Master Sheet with data from other sheets in workbook...

    Copy the code
    Open the workbook in which you want to add the code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste
    Close the Visual Basic Editor window to return to excel

    To run the code:
    Press Alt+F8 and select GetData and click Run

  5. #5
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Populate Master Sheet with data from other sheets in workbook...

    I appreciate your patience SixthSense...

    I did what you told me to the mock spreadsheet and it worked slick as a whistle. I tried doing it with my actual spreadsheet and it keeps giving me the error messages attached. I've attached the actual database so you can see what the tabs look like etc. I think we're almost there... if this works I will most certainly owe you a drink of your choice

    Thanks again for your help.
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,684

    Re: Populate Master Sheet with data from other sheets in workbook...

    The reason is you have made these lines as comment
    ' Sixthsense On Error GoTo MissingMaster Set WsMas = Sheets("MASTER ACCOUNTS") On Error GoTo 0

    and in your earlier example the CONSOLIDATION sheet was named as MASTER ACCOUNTS but in your current file it is named as MASTER ACCOUNT LISTING.

    The below is the revised code...

    Please Login or Register  to view this content.
    Refer the attached file for details.........
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-18-2011
    Location
    Colorado Springs, Colorado
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Populate Master Sheet with data from other sheets in workbook...

    SixthSense.... you are the BOMB! I can't tell you how much easier you just made life for me. Thanks so much for helping me with this. This truly is a great site for the smarter folks (you) to help out us simpletons...lol.

    Again, thanks so much for taking the time to help me with this project.

    Marty

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,684

    Re: Populate Master Sheet with data from other sheets in workbook...

    You're welcome and thanks for the feedback. Glad to help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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