+ Reply to Thread
Results 1 to 13 of 13

Copying specific data from multiple worksheets into one worksheet?

  1. #1
    Registered User
    Join Date
    08-10-2015
    Location
    VA
    MS-Off Ver
    2013
    Posts
    6

    Post Copying specific data from multiple worksheets into one worksheet?

    Hi,

    I have a multi sheet workbook that I want to use as a project portfolio for our organization, example attached.

    For reporting purposes I have created a Mgmt Rollup Projects sheet (sheet 1) and added a check box to Column D to all of the Project Team sheets. The intent is that if the check box is checked then a copy all data in that row should copy onto the Mgmt Rollup Projects sheet. The Mgmt Rollup Projects sheet should only include data copied from the team sheets with a check in Column D.

    All sheets have the same formatting and column headings (starting on row 13), including the Mgmt Rollup Projects sheet.

    I have tried VLOOK up and macros which pull data but isn't show up on the mgmt roll up page correctly.

    I appreciate any help!

    exec_project_portfolio_example.xlsx
    Last edited by Blarfengaar; 08-10-2015 at 06:09 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Copying specific data from multiple worksheets into one worksheet?

    Here you go...This works but with a few downsides!

    1. Because you are copying so many rows it runs quite slowly (There is a way around this!)

    2. Currently All checkboxes are also copied (Is this required?)
    3. All your rows in Mgmt are a different size to the other sheets
    4. The checkboxes in all sheets actually overlap onto the next row hence why I have had to use the top left cell in the code.

    Please Login or Register  to view this content.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Registered User
    Join Date
    08-10-2015
    Location
    VA
    MS-Off Ver
    2013
    Posts
    6

    Re: Copying specific data from multiple worksheets into one worksheet?

    Thank you.

    Responses to your feedback follows:

    Not all rows with the check boxes need to be copied, just the rows with the check box actually checked. I inserted those using Form Controls, not ActiveX Controls. I didn't realize the column sizing needed to be the same. I can change that if it is necessary. I am running it now and you are right, it is quite slow.

  4. #4
    Registered User
    Join Date
    08-10-2015
    Location
    VA
    MS-Off Ver
    2013
    Posts
    6

    Re: Copying specific data from multiple worksheets into one worksheet?

    How can I update the script to only include the check boxes that have been checked? I can't figure that out.

  5. #5
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Copying specific data from multiple worksheets into one worksheet?

    It does only include the check boxes that are checked already...Did you actually run it?
    I didn't say column size..I said row size..I'm saying the data doesn't fit as nicely so that's easily changed.
    It is only slow because there is so much copy and pasting. The code below will do the same job but without copying and pasting.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-10-2015
    Location
    VA
    MS-Off Ver
    2013
    Posts
    6

    Thumbs up Re: Copying specific data from multiple worksheets into one worksheet?

    This is great! It works perfectly! Have a great day!

  7. #7
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Copying specific data from multiple worksheets into one worksheet?

    Quote Originally Posted by Blarfengaar View Post
    This is great! It works perfectly! Have a great day!
    Hi, Blarfengaar, ( and or ARowbot ),
    . One quick question...


    . I was going throught this code to
    . a ) learn a bit about check boxes
    and
    . b ) the possibly offer another alternative ( possibly quicker solution )

    ... But I am a bit puzzeled: I find that both codes do copy the required rows, BUT also they copy lots of unwanted rows.
    . Do you find that ?
    . Thanks
    Alan
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

  8. #8
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Copying specific data from multiple worksheets into one worksheet?

    I Suspect that it is because there are multiple checkboxes where there shouldn't be...For example on Team 4, There are multiple checkboxes in row 14. I assume this might be the case a few times..

  9. #9
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Copying specific data from multiple worksheets into one worksheet?

    Quote Originally Posted by ARowbot View Post
    I Suspect that it is because there are multiple checkboxes where there shouldn't be...For example on Team 4, There are multiple checkboxes in row 14. I assume this might be the case a few times..
    Hi ARowbot,
    . Thanks for the reply, so its a case of the OPs sheet ? Some extra check boxes other than in column D ?
    . Is it possible to constrain to looking in column D ?
    . Sorry if its a dumb question - I am a Beginner and this is the first time I saw Check boxes. - This thread was a typical sorting thing I have been learning and the only new thing was the check boxes so i thought it would be a good Thread to answer and look at and learn something new... But you came in before I finished.. I thought then I would carry on anyway and use your check box bit with some of my ( Array ) code bits as an alternative, - but then I fell down trying to get your code bit to pick out the correct rows

    Thank again for coming back to the Thread, appreciate it.

    Alan

  10. #10
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Copying specific data from multiple worksheets into one worksheet?

    I was on about the extra checkboxes in Column D But you could put an If statement as follows:

    Please Login or Register  to view this content.

  11. #11
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Copying specific data from multiple worksheets into one worksheet?

    Quote Originally Posted by ARowbot View Post
    I was on about the extra checkboxes in Column D But you could put an If statement as follows:

    Please Login or Register  to view this content.
    ... Thanks for that.
    . It does not help the code to work.. And I am not "seeing" the extry boxes that are apparantly causing extra rows to be found. But maybe I am missing something -

    . But thanks for the reply. I guess I need to read up a bit more.
    .. basically i was hoping to get your code bit to give me the row numbers where the checked boxes are.. It does do that but then for all sheets gives extra values for lots of rows with nothing in and a coulple that have things in but either have no checked box .( that I can see ) . , or were already selected.
    .. I am surprised the OP got the code to work. Maybe he is happy to delete manually those extra produced rows..

    Thanks again anyway for the reply

    Alan

  12. #12
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Copying specific data from multiple worksheets into one worksheet?

    If you use the following code..It will highlight to you where some of the rows have multiple checkboxes (On top of each other). It will only show some because the one it highlights may look correct even if there is another one underneath it. blarfengaar...You need to check your sheet to check that a row does not have multiple checkboxes in or it will cause problems.

    Please Login or Register  to view this content.

  13. #13
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Copying specific data from multiple worksheets into one worksheet?

    Quote Originally Posted by ARowbot View Post
    If you use the following code..It will highlight to you where some of the rows have multiple checkboxes (On top of each other). It will only show some because the one it highlights may look correct even if there is another one underneath it. blarfengaar...You need to check your sheet to check that a row does not have multiple checkboxes in or it will cause problems.

    ......
    .. Thanks for coming back with that.
    . Basically I did something very simlimar . I commented out the action bit ( Copy paste, your first code , or the .Formila = bit in your second code. )
    . Then while stepping throgth wiith F8 I placed the cursor on r and / or nr and saw it was counting too many, explainign why the original full codes were bringing in too many rows


    Quote Originally Posted by ARowbot View Post
    ....some of the rows have multiple checkboxes (On top of each other). It will only show some because the one it highlights may look correct even if there is another one underneath it.....
    ....
    . that's the bit that has cleared the mystery for me.
    ...



    .. I am new to check boxes / shapes etc...
    . It would appear it is only possible to go througt the checkboxes in the order that they are put in..???
    . - So a code like yours will rely on the check boxes having been put in sequentially in the rows in a single column ( AND ONLY once!! ) ( And there must be no other "Shapes" or they will also be accesed, leading to extra r or nr values .... )
    .

    . I am still reading up, but do not see yet how to get at alist to show where the check boxes are, so that in such a case I could check for, and delete , any extra multiple check boxes in a cell ( or for that matter any other check boxes in the sheet any where else which would also chuck a spanner in such a code.
    .
    . Thanks very much for coming back again here.

    . Shame the OPs feedback was not more detailed...

    Thanks A robot
    Alan

+ 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. Replies: 2
    Last Post: 10-14-2014, 06:49 AM
  2. Copying data from multiple worksheets to a master worksheet
    By Michael.H. in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-16-2014, 10:18 AM
  3. Replies: 3
    Last Post: 05-01-2014, 01:17 PM
  4. Copying specific data to a specific field in a worksheet macro
    By bradpeh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2013, 01:52 AM
  5. Macro for copying data from one worksheet to multiple worksheets
    By Switters023RS in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2012, 12:02 PM
  6. Copying specific strings from several worksheets to a new worksheet
    By Omega3k in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2010, 08:39 AM
  7. Copying Cell Data From Multiple Worksheets to One Worksheet
    By blitzburgh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2007, 02:02 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