+ Reply to Thread
Results 1 to 6 of 6

Combo Box from list and getting table to populate

  1. #1
    Registered User
    Join Date
    01-02-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Combo Box from list and getting table to populate

    Hello,
    Please see the attached file.
    Issue#1: I am having difficulty getting the graph and table to populate on the "Student Report" sheet. The intention is for the "Load and Graph" button to populate the table, matching the data from B2,C2,D2 as well as the student's name in the combo box.

    Issue #2: For some reason when I add a new student or additional assessment information to the "Input and Group Report" sheet, it does not get added as an option to the combo box.
    I cannot tell if it is due to an issue with calculations in "Helper" or not.

    Thank you,
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Combo Box from list and getting table to populate

    Is the Loop statement in the wrong place?

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    01-02-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: Combo Box from list and getting table to populate

    Thanks David,
    Your suggestion made something happen, but it does not filter the results based on the measure, grade, norm period, and student name. It populates the table and graph with all data input in the "input and group report" sheet.
    Any more ideas?

    Thanks,

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Combo Box from list and getting table to populate

    Forgive me. But I'm graphically challanged.

    1. You were assigning the Student named range just to a range. Not to the named Range.
    a. You had the changed event named wrong. It should have been just Private Sub Combobox21_Change. While this worked, the combobox was updating after the selection of a name. That should happen BEFORE you select a name from the Combobox, so I moved the code to the Worksheet_Activate event. Now, the code fires whenever you activate the sheet.
    2. [Load and Graph] I don't work in Selection much, so I changed all the Activecell references to Range. I hope this isn't too much of a burden on you.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-02-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: Combo Box from list and getting table to populate

    Awesome!

    The graph and table update now (although the button text gets progressively larger as its clicked).

    Now I need to find a way to get the combo box to update when the names are changed in the input sheet, or if names are added.

    Crossposted:
    http://www.ozgrid.com/forum/showthread.php?t=192621
    and
    http://www.mrexcel.com/forum/excel-q...-populate.html

  6. #6
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Combo Box from list and getting table to populate

    the button text gets progressively larger as its clicked)
    Hmm. I doesn't do that on either of my machines.

    If you want the graph to update after selecting the name from the combobox, move all the code from the Commandbutton21_Click event to the Combobox_click_event.

    Anytime you select another sheet, then move back to the Student Report sheet, the combobox is automatically updated.

+ 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. Getting a combo/list box to populate based on the other
    By niall4488 in forum Excel General
    Replies: 3
    Last Post: 06-14-2011, 06:06 AM
  2. populate scroll list columns from combo box
    By salmanisn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2011, 06:25 AM
  3. [SOLVED] using portion of larger list to populate combo box
    By ll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2006, 02:50 PM
  4. Populate List / Combo Box
    By Dave C in forum Excel General
    Replies: 1
    Last Post: 10-06-2005, 04:05 PM
  5. [SOLVED] Populate a Combo or List Box
    By Jonathan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2005, 12: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