+ Reply to Thread
Results 1 to 9 of 9

Copy multiple sheet into one sheet(few row selected from multiple sheet)

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    48

    Lightbulb Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Could anyone give me any idea to copy multiple sheet into one worksheet.
    Example got Sheet1 , sheet2, sheet3, sheet4 COPY INTO sheet5
    Sheet1 got Name, Tel No, Address, Bonus Month, Leave.
    Sheet2 got Name, Tel No, Address, Bonus Month, Leave.
    Sheet3 got Name, Tel No, Address, Bonus Month, Leave.
    Sheet4 got Name, Tel No, Address, Bonus Month, Leave.

    BUT Sheet5 i only want Name, Tel No & Address only

    How should i do the macro? Anyone help please

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    If you could upload a sample workbook showing how the data is currently set out and how the worksheet should appear once all the data is collated into one worksheet it would be much easier to give you an answer. Without a sample workbook it is almost impossible to give you an answer. What you require sounds feasible however without a sample workbook it is very hard to help you. Make sure there is no sensitive data in the sample workbook. To upload a sample workbook select Go Advanced, Manage Attachments and upload a sample workbook.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Though this has been answered numerous times before, see how this goes:

    Please Login or Register  to view this content.
    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  4. #4
    Registered User
    Join Date
    07-17-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Hi smuzoen,
    here the example for the excel file.
    Some column in the sheet5 left blank due to need manual key in.

    Trebor76,

    This was not the things i want in my worksheet please kindly check my excel sheet provide
    Attached Files Attached Files
    Last edited by gingank; 07-26-2012 at 06:34 AM.

  5. #5
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Use the following
    Please Login or Register  to view this content.
    I left the previous code in attached workbook - the above code is in module 2 - Run macro called combWS
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-17-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Hi Smuzeon,
    The vba you give me not suit me, i provide a similar actual file tat i need to do.
    Please help me. just highlighted column need to copy to output but each sheet have owe total
    but in the output sheet only need i total and also need to create extra column to insert the data and formula manually.
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    No wonder it does not suit as it is completely different to the sample workbook you provided. My code that I gave you EXACTLY replicated your sample file however this new file is completely different. When I asked for a sample file I needed to know how the data was laid out and this new file bears no resemblance to the sample file.
    I will take a look later today and post back a solution unless someone gives you an answer prior. Please try to provide sample files that match your requirements as providing solutions requires time on the behalf of people trying to help.

  8. #8
    Registered User
    Join Date
    07-17-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    Hi Sumzoen,

    Thank for the help given, hope you hear the feedback by today
    I'm sorry for didnt provide the correct sample data.

  9. #9
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: Copy multiple sheet into one sheet(few row selected from multiple sheet)

    I cannot workout what has to be copied from Sheet 1,2,3,4 to Output - You highlighted some column headers in Sheets 1-4 Red but I cannot match it to the sample Output sheet. Column A,B,D,F,G,K,L,O are highlighted red in sheets 1-4 -> I can see some matches e.g. POL, POO, Dischvessel in Sheets 1-4 and in output however there are 200+ rows in Sheets 1-4 but only 13 rows in the Output sheet. Could you please explain very clearly the rules/logic on what to copy from data sheets to output. Please be very specific and perhaps provide a small sample showing EXACTLY how the data is shown in Sheets 1-4 and Exactly how the data would appear in the Output sheet. It is obviously clear in your mind however I need to know the rules so I can write the code for you. I am happy to help you however you need to explain what you require very clearly for me please.
    Try to supply a small sample workbook so I can see every bit of data that needs to get copied. I can also add in the calculations for you as well (the totals) if you show how they should appear as this can be done automatically. I hope I have explained what I need from you clearly enough.

+ 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