+ Reply to Thread
Results 1 to 6 of 6

Consolidating multiple sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    St Albans, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Consolidating multiple sheets

    HI All

    I am sure this question has been asked a thousand times before but i can't seem to find a solution ideally a vba.
    What i have are multiple sheets of orders that i am trying to consolidate into a master sheet.
    Basically i have a list of lets say 9 stores and they place orders for a range of elements i want to create a one consolidate picking list.
    I have attached the file an example. This takes me about 50% of my working time as currently i copy and paste and then use vlookups.
    Please help

    Many Thanks Consolidate sheets.xlsx

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Consolidating multiple sheets

    Not sure if this helps?

    Sub johnnypol()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
        If ws.Name <> "Master" Or ws.Name <> "Desired outcome" Then
            ws.Range("A1:AB15").Copy Sheets("Master").Range("A" & Rows.count).End(3)(2)
        End If
    Next ws
    End Sub

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    St Albans, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Consolidating multiple sheets

    Quote Originally Posted by JOHN H. DAVIS View Post
    Not sure if this helps?

    Sub johnnypol()
    Dim ws As Worksheet
    For Each ws In ActiveWorkbook.Worksheets
        If ws.Name <> "Master" Or ws.Name <> "Desired outcome" Then
            ws.Range("A1:AB15").Copy Sheets("Master").Range("A" & Rows.count).End(3)(2)
        End If
    Next ws
    End Sub
    I Get a subscript out of range error when i run this VBA so not sure if this could help

  4. #4
    Registered User
    Join Date
    01-23-2014
    Location
    St Albans, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Consolidating multiple sheets

    Quote Originally Posted by johnnypol View Post
    I Get a subscript out of range error when i run this VBA so not sure if this could help
    I found out why it was giving me the error the sheet Master had an additional space at the end but this doesn't do what I need it just pasted the content of all sheets int the master 1 under another.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Consolidating multiple sheets

    What do you want too happen?

  6. #6
    Registered User
    Join Date
    01-23-2014
    Location
    St Albans, England
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Consolidating multiple sheets

    Quote Originally Posted by JOHN H. DAVIS View Post
    What do you want too happen?
    I want it to do the following in the master sheet starting from column F to paste the cells from the order 1, 2 and 3 sheets from rows 1 to 5 and columns F to wherever the data ends next to each other (the master sheet would end up with 23 columns starting from F and then in rows 7 to 15 the values would be returned in the correct column and row. Basiccaly it is like merging 3 orders together where certain receipients have several items being delivered. Basically i want to consolidate the 3 sheets into 1 so they end up looking like the "Desired outcome" sheet.

+ 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] Need help consolidating data across multiple sheets
    By BrianSells in forum Excel General
    Replies: 6
    Last Post: 04-30-2012, 08:36 PM
  2. Consolidating multiple sheets into 1
    By JessicaV in forum Excel General
    Replies: 4
    Last Post: 06-24-2010, 05:59 PM
  3. Consolidating Columns from Multiple Sheets
    By The Phil in forum Excel General
    Replies: 16
    Last Post: 03-16-2010, 07:36 PM
  4. Automatically Consolidating Multiple Sheets
    By nhsblackpool1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-27-2008, 11:15 AM
  5. [SOLVED] Consolidating multiple sheets
    By Phil Osman in forum Excel General
    Replies: 4
    Last Post: 06-29-2005, 10: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