+ Reply to Thread
Results 1 to 9 of 9

VBA to consolidate result from each sheets

  1. #1
    Registered User
    Join Date
    06-03-2016
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    56

    VBA to consolidate result from each sheets

    i would like to copy result from each sheet (Emp1, Emp2, Emp3 etc) into sheet (Consolidated Result).
    User will add or remove the Emp sheet depending on the no of employee we have.
    Appreciate if any expert here can help me. Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: VBA to consolidate result from each sheets

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    06-03-2016
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    56

    Re: VBA to consolidate result from each sheets

    Quote Originally Posted by Mumps1 View Post
    Try:
    Please Login or Register  to view this content.
    Thank you so much! it works perfectly and save a lot of time.

  4. #4
    Registered User
    Join Date
    06-03-2016
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    56

    Re: VBA to consolidate result from each sheets

    Dear Mumps1,
    Sorry may i get your guidance again if i would like to add 1 more condition, how can i add it into the code? This is to pick up different cells data in LM* sheet.

    If ws.Name Like "LM*" Then
    If ws.Range("J2") <> "" Then
    With desWS
    .Cells(.Rows.Count, "A").End(xlUp).Offset(1) = ws.Range("J2")
    .Cells(.Rows.Count, "B").End(xlUp).Offset(1).Resize(, 4).Value = Array(ws.Range("M14").Value, ws.Range("M29").Value, ws.Range("M44").Value, ws.Range("M46").Value)
    Last edited by yllew; 07-06-2022 at 09:07 AM.

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: VBA to consolidate result from each sheets

    Please post an updated file and explain in detail what you want to do.

  6. #6
    Registered User
    Join Date
    06-03-2016
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    56

    Re: VBA to consolidate result from each sheets

    Quote Originally Posted by Mumps1 View Post
    Please post an updated file and explain in detail what you want to do.
    This is the updated file. LM_* sheet will have different numbers of row, so the cells will be different from Emp* sheet, but they will consolidated together.
    Attached Files Attached Files

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: VBA to consolidate result from each sheets

    Try:
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    06-03-2016
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    56

    Re: VBA to consolidate result from each sheets

    It works, thank you!!

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: VBA to consolidate result from each sheets

    You are very welcome.

+ 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] consolidate sheets
    By geniusufo007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2022, 02:10 AM
  2. Consolidate Multiple Sheets into Two Master Sheets
    By bchampeau in forum Excel General
    Replies: 5
    Last Post: 01-30-2017, 03:57 PM
  3. Macro to consolidate from 2 Sheets to a Result Sheet
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2017, 05:59 AM
  4. Macro to Consolidate Data from 3 Sheets to a Result Sheet
    By rehana402003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2016, 07:08 AM
  5. Consolidate several sheets data in a master sheets
    By amy03 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-24-2016, 06:42 PM
  6. [SOLVED] Consolidate Sheets VBA
    By 10190879 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-11-2015, 01:57 PM
  7. how to consolidate sheets
    By tommasopalazzot in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2005, 12:15 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