+ Reply to Thread
Results 1 to 6 of 6

VBA code to consolidate multiple sheets

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    VBA code to consolidate multiple sheets

    Hi all,

    I have multiple sheets that I wanted to consolidate. I attached a sample test file that have 2 tabs with same columns and headings and looking for some VBA coding to consolidate data in both tabs into one.

    I usually have up to 15 - 20 sheets with similar data, and it takes a lot of time to consolidate. I hope I can get some quick solution to that.
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: VBA code to consolidate multiple sheets

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: VBA code to consolidate multiple sheets

    Gives me Run time error

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: VBA code to consolidate multiple sheets

    .
    Change : Set wsM = Sheets("Master") MASTER to the name of the primary sheet where all the other sheets will be copied to.

    Also, place this Dim statement at the top of your macro : Dim x As Long
    Last edited by Logit; 11-26-2019 at 04:22 PM.

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: VBA code to consolidate multiple sheets

    It's worked. Thanks

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: VBA code to consolidate multiple sheets

    .
    You are welcome. 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)

Similar Threads

  1. VBA Code to Consolidate Multiple Sheets with Multiple Criteria
    By Yadavgiri in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2019, 11:23 AM
  2. [SOLVED] Vba code to consolidate multiple sheets to one
    By aparnawangu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-17-2017, 01:01 PM
  3. Consolidate Multiple Sheets into Two Master Sheets
    By bchampeau in forum Excel General
    Replies: 5
    Last Post: 01-30-2017, 03:57 PM
  4. VBA Code to consolidate sheets from multiple workbooks into one workbook
    By d247 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-10-2014, 02:53 AM
  5. VBA code to consolidate coloumns in muliple sheets into multiple coloumns in one sheet?
    By BrettRCourtney in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 09:17 AM
  6. [SOLVED] VBA code to consolidate coloumns in muliple sheets into multiple coloumns in one sheet?
    By BrettRCourtney in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 06:19 AM
  7. [SOLVED] Modification to code to consolidate two sheets...
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-22-2006, 01:40 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