+ Reply to Thread
Results 1 to 12 of 12

Generate a pending list from multiple sheets

  1. #1
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Generate a pending list from multiple sheets

    Hi there,

    I'm really stuck with what I'm trying to do and I'm not even sure if it's possible.

    In my line of work I send off samples to other labs for testing. These are logged onto a spreadsheet and the empty fields are filled once results are received. In my example spreadsheet, Column N is blank whenever a result has yet to be received and should therefore appear on the newly generated pending list sheet. I can get a list generated from one sheet but not multiple sheets.

    If this can be done then great! But it would be ideal if I could take this one step further. The example spreadsheet given would be for 2014. Would it be possible to have the previous year's workbook (2013) scanned also for pending requests and added to the 'Pending' sheet list? This list should ideally be displayed in date order with the oldest pending request first.

    Any help would be much appreciated,

    Steven
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Generate a pending list from multiple sheets

    Try this code......For detail pls see the attached sheet.
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Generate a pending list from multiple sheets

    The best way to grab data from multiple sheets in my opinion is a macro, VBA.

    I've installed this macro into the PENDING sheet:
    Please Login or Register  to view this content.
    This will apply an Autofilter to each sheeet in the workbook (Except PENDING) for blanks in column N and copy those rows to the PENDING sheet. THis is an EVENT macro, it occurs each time the PENDING sheet is brought up onscreen, so it will always show the most current data.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate a pending list from multiple sheets

    Hi sktneer,

    This works very well but I prefer having the pending sheet update automatically when opened rather than having to press a button.

    Many thanks for your help though!

    Steven

  5. #5
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate a pending list from multiple sheets

    Quote Originally Posted by JBeaucaire View Post
    The best way to grab data from multiple sheets in my opinion is a macro, VBA.

    I've installed this macro into the PENDING sheet:
    Please Login or Register  to view this content.
    This will apply an Autofilter to each sheeet in the workbook (Except PENDING) for blanks in column N and copy those rows to the PENDING sheet. THis is an EVENT macro, it occurs each time the PENDING sheet is brought up onscreen, so it will always show the most current data.

    Hi J Beaucaire,

    Thank you so much, this is exactly what I was hoping for!

    Just one thing though. I may have other sheets within the workbook that don't require filtering. How would I modify the code to take this into consideration?

    Regards,

    Steven

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Generate a pending list from multiple sheets

    Please find the attached sheet to see if this works as per your requirement.

  7. #7
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate a pending list from multiple sheets

    Quote Originally Posted by sktneer View Post
    Please find the attached sheet to see if this works as per your requirement.
    Thanks again sktneer and yes, this now works perfectly.

    This workbook may ultimately have other sheets that do not require filtering. So, for example, if I had another sheet named 'TOTALS' and this does not require filtering, how can this code be tweaked to take that into account?

    Kind regards,

    Steven

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Generate a pending list from multiple sheets

    For mine, if it's only a few sheets, one way is to exclude them by sheet names:

    Please Login or Register  to view this content.

    You can add more of those exclusions is you wish.


    To access the code in the workbook, right-click on the PENDING tab name and select VIEW CODE.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Generate a pending list from multiple sheets

    You have to include the code in red color to achieve that.....

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate a pending list from multiple sheets

    Quote Originally Posted by JBeaucaire View Post
    For mine, if it's only a few sheets, one way is to exclude them by sheet names:

    Please Login or Register  to view this content.

    You can add more of those exclusions is you wish.


    To access the code in the workbook, right-click on the PENDING tab name and select VIEW CODE.
    It would never be more than a few sheet names so this is ideal for my purposes.

    Many thanks for your help. This will save me a great deal of time at work!

    Take care,

    Steven

  11. #11
    Registered User
    Join Date
    03-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Generate a pending list from multiple sheets

    Quote Originally Posted by sktneer View Post
    You have to include the code in red color to achieve that.....

    Please Login or Register  to view this content.
    Yes, I see that. You've been a great help.

    Thanks for your time,

    Steven

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Generate a pending list from multiple sheets

    Glad to help you. Thanks for the feedback.
    If that takes care of your question, please mark your thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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] Create a validation list in E2 pending on D2
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2013, 08:26 PM
  2. Replies: 5
    Last Post: 09-30-2012, 07:47 AM
  3. Replies: 2
    Last Post: 02-06-2010, 11:58 AM
  4. Need a VB code to generate sheets from a list of cells
    By Thanatos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-07-2008, 08:14 AM
  5. Excel Generate List from Multiple Sheets
    By Scorpio in forum Excel General
    Replies: 5
    Last Post: 05-16-2008, 01:20 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