+ Reply to Thread
Results 1 to 9 of 9

Collating Information From Multiple Worksheets to One Worksheet

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    54

    Collating Information From Multiple Worksheets to One Worksheet

    Is it possible to collect multiple worksheets with the exact same columns but multiple rows to one worksheet.

    i have attached my workbook for your information. i require all the information on the works dropped into the ''Order Rec'' work sheet.

    Hope someone can help.

    Nathan.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Here is a VBA solution for you:

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    54

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Thank you for your response, it was great. I have another couple of queries which i hope you could help with.


    1. Would it be possible to only add rows from each worksheet that had a quantity in column H. I will attach a new workbook to the thread.
    2. Would it be possible to remove some sheets from been Copied across into "Parts List" ie: Summary, Manufacturing, Elsteel, Copper?

    Regards
    Last edited by nathandavies; 10-31-2014 at 10:54 AM. Reason: New information

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Collating Information From Multiple Worksheets to One Worksheet

    also is it possible to only move cells with a number in the ""QUANT" column?
    Yes. It will require a loop to look at each cell in the quant column or it may be more effective to move everything and then delete the rows that have no value in the quant column.

    I used the latter as I thought it would be quicker

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    54

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Please see the new attached workbook, which might give you a better understanding of what i'm trying to achieve with the other couple of queries;


    1. Would it be possible to only add rows from each worksheet that had a quantity in column H. I will attach a new workbook to the thread.
    2. Would it be possible to remove some sheets from been Copied across into "Parts List" ie: Summary, Manufacturing, Elsteel, Copper?

    thanks for your help!
    Attached Files Attached Files

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Item 1. has been already included in post #4. For item #2. change this line of code

    Please Login or Register  to view this content.
    to read

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    54

    Re: Collating Information From Multiple Worksheets to One Worksheet

    That extra bit of code keeps copying the unwanted sheets. is there anything else that could work?

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Try changing the and to an or in the If statement. I have to run out for a couple of hours. Will check back when I return.

  9. #9
    Registered User
    Join Date
    07-16-2014
    Location
    England
    MS-Off Ver
    2010
    Posts
    54

    Re: Collating Information From Multiple Worksheets to One Worksheet

    Thanks for your help, i have managed to get it working correctly!

+ 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. I want to pull information from multiple worksheets into 1 summary worksheet
    By jacqueg in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-28-2013, 03:56 PM
  2. Collating multiple worksheets to one worksheet
    By Raymond85 in forum Excel General
    Replies: 2
    Last Post: 12-28-2012, 08:23 AM
  3. Sorting information from multiple worksheets to new worksheet
    By zmbd in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2011, 10:11 AM
  4. Replies: 2
    Last Post: 10-20-2010, 08:52 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