Hello, guys,
I need to select two people from a list of 50 for them to be on duty on that day, and make a table. The code should generate the arrangement for a month, from the first day to the last, which means that it must decide how many working days in current month.
In the table, Column A would be the date, column B and C would be the names of the selected people. Column F contains the list of all the people(from F2 to F51), which is there already. The rule is that no one would be on duty for two days in a row (a Friday and the Monday after that also counts as two consecutive days).
I could do this manually as there are only 50 people, but if I do it with VBA, then nobody is gonna question my impartiality.
It appears easy, but I can't figure it out. Fancy the Challenge? Thanks a lot guys!!
I need to select two people from a list of 50 for them to be on duty on that day, and make a table. The code should generate the arrangement for a month, from the first day to the last, which means that it must decide how many working days in current month.
In the table, Column A would be the date, column B and C would be the names of the selected people. Column F contains the list of all the people(from F2 to F51), which is there already. The rule is that no one would be on duty for two days in a row (a Friday and the Monday after that also counts as two consecutive days).
I could do this manually as there are only 50 people, but if I do it with VBA, then nobody is gonna question my impartiality.
It appears easy, but I can't figure it out. Fancy the Challenge? Thanks a lot guys!!