Closed Thread
Results 1 to 2 of 2

VBA Automatic Timetable Population

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    2010
    Posts
    7

    VBA Automatic Timetable Population

    I have a worksheet with children's names and their 3 preferences (day & time) for swimming classes. I have a second worksheet that contains a timetable with days Monday-Saturday across the top and down the side 6 available slots for each time available for each class time.
    I need a VBA that will take the child's first day/time preference and if available place their name in the timetable with their corresponding grade and then highlight the child's assigned preference in blue in the first worksheet. If the first day/time preference is taken, then see if the 2nd preference is available and if this is taken, then check the 3rd preference. If all preferences are taken then highlight the child's name in red so that I know that they have not been assigned a spot in the timetable.
    If all of the 6 available slots for a specific day/time are filled when it checks the child's first preference then I want it to go to the next preference and so on.

    Worksheet 1
    Column A = Name
    Column B = Grade
    Column C = Preference 1 Day
    Column D = Preference 1 Time
    Column E = Preference 2 Day
    Column F = Preference 2 Time
    Column G = Preference 3 Day
    Column H = Preference 3 Time

    Worksheet 2
    Column A = Class Time
    Column B = Monday (cells for child's name)
    Column C = Grade (child's grade)
    Column D = Tuesday (cells for child's name)
    Column E = Grade (child's grade)
    Column F = Wednesday (cells for child's name)
    Column G = Grade (child's grade)
    Column H = Thursday (cells for child's name)
    Column I = Grade (child's grade)
    Column J = Friday (cells for child's name)
    Column K = Grade (child's grade)
    Column L = Saturday (cells for child's name)
    Column M = Grade (child's grade)

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Automatic Timetable Population

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    Click Here to Jump to the Other Thread
    Last edited by Leith Ross; 12-08-2014 at 02:50 AM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA for automatic Hyperlink population
    By jakeisbill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2013, 01:49 PM
  2. Automatic Population
    By mediumquality in forum Excel General
    Replies: 6
    Last Post: 03-28-2012, 06:39 AM
  3. [SOLVED] Automatic Population?
    By Stacey in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-08-2006, 06:50 PM
  4. Automatic Cell Population
    By EJ in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-24-2006, 08:52 AM
  5. [SOLVED] Automatic cell population
    By MazzyMirsa in forum Excel General
    Replies: 3
    Last Post: 02-09-2006, 02: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