+ Reply to Thread
Results 1 to 3 of 3

dynamically generate list on userform

  1. #1
    Registered User
    Join Date
    01-20-2009
    Location
    Denver, CO (USA)
    MS-Off Ver
    Excel 2010
    Posts
    7

    dynamically generate list on userform

    My wife is an elementary school teacher. At her school the kids have something they call exploratories on Friday afternoons. The exploratories change every month. At the start of the month the kids each rank their top five choices and then they are randomly assigned to groups giving weight as much as possible to their choices (not everyone necessarily could get their first choice so my system randomly chooses who, in a given month, gets to have their first choice, etc.).

    Things have gone swimmingly. The system allows the teachers to quickly enter the data from their classroom, email that to the admins, the admins have a tool I wrote that imports the data from all the teachers, performs the randomization and assignment and then emails the lists back out to the teachers. It used to take the admins four or five hours to complete this process. With my tool it takes the admins less than 10 minutes.

    I'm now working on version 2 of the tool. I'd like to create a userform that displays a list of the kids assigned to a particular exploratory or the assignments of the kids from a particular classroom. Is there an easy way to do that?

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: dynamically generate list on userform

    Could you attach a workbook with your data set-up (anonymized data)?
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    01-20-2009
    Location
    Denver, CO (USA)
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: dynamically generate list on userform

    I don't think I follow. What I have is a large data set and I will be pulling select rows out. I'd like to display those rows on a userform (not in a worksheet as I keep the users out of the worksheets and have them exclusively on userforms). I envision a while loop iterating through and assigning the selected rows values to labels on the form. Am I close?

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: dynamically generate list on userform

    Is the data coming from a worksheet?

    If it is then it would probably help us help you if we could see some sample data.
    If posting code please use code tags, see here.

+ 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. How to dynamically generate the Formula
    By simi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-04-2013, 01:26 PM
  2. Dynamically generate browse button based on week ending
    By vislavti in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2012, 08:38 AM
  3. Generate logfile from userform list
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2011, 01:42 PM
  4. Dynamically change list in a userform
    By Cumberland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2007, 03:41 PM
  5. generate sub dynamically
    By Christian Galbavy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2005, 01:06 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