markster
Well-known Member
- Joined
- May 23, 2002
- Messages
- 579
- Office Version
- 365
- Platform
- Windows
- MacOS
Right I’m onto the second stage of my big scheduling job.
When scheduling takes place there is always errors the most common things are:
A teacher might be booked to teach to different courses at exactly the same time in different places – this is a clash
The same room might be double booked by different teachers for teaching at exactly the same time – this is a clash
-Missing information or TBC written in a cell
I need some Macro code to highlight any rows in yellow that contain a clash or missing information. Here are some examples:
Scheduling Issues highlighted above
Teacher 1 is scheduled to Teach in BOTH London & Manchester on Tuesday 28/9/21 between 09:00 and 10:00 - Row 2 and Row 19 should be highlighted in YELLOW as a clash
Teacher 2 is scheduled to teach BOTH Course 2 and Course 8 at the same time on 28/9/21 in different rooms in London - Row 6 & 7 should be highlighted in YELLOW as a clash
Teachers 8 & 10 are scheduled to teach a different course at exactly the same time in the SAME ROOM on 15/12/2021 - rows 12 and 13 should be highlighted as a clash
There is missing delivery date infromation in Row 16 - this row should be highlighted in Yellow
Row 18 CONTAINS TBC in delivery dates column so row should be highlighted in Yellow
Row 9 Doesn't have a room number so should be highlight in Yellow
When scheduling takes place there is always errors the most common things are:
A teacher might be booked to teach to different courses at exactly the same time in different places – this is a clash
The same room might be double booked by different teachers for teaching at exactly the same time – this is a clash
-Missing information or TBC written in a cell
I need some Macro code to highlight any rows in yellow that contain a clash or missing information. Here are some examples:
20210923 - Data Download from Timetabling System.xlsm | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | Reference | Course Name | Room Number | Location | Allocated Teacher | Delivery Dates | Scheduled Days | Planned Size | Size | Scheduled Start Time | Scheduled End Time | Duration | ||
2 | 1 | Course 1 | 23 | London | Teacher 1 | 28/9/2021 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
3 | 2 | Course 1 | 23 | London | Teacher 1 | 26/10/2021 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
4 | 3 | Course 1 | 23 | London | Teacher 1 | 16/11/2021 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
5 | 4 | Course 1 | 23 | London | Teacher 1 | 23/11/2021 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
6 | 5 | Course 2 | 24 | London | Teacher 2 | 28-Sep-21 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
7 | 6 | Course 8 | 45 | London | Teacher 2 | 28-Sep-21 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
8 | 7 | Course 2 | 24 | Birmingham | Teacher 2 | 20/10/2021 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
9 | 8 | Course 2 | Birmingham | Teacher 2 | 27/10/2021 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | |||
10 | 9 | Course 2 | 24 | Birmingham | Teacher 2 | 12-Jan-21 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
11 | 10 | Course 2 | 24 | Birmingham | Teacher 2 | 12-Aug-21 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
12 | 11 | Course 2 | 24 | Birmingham | Teacher 8 | 15/12/2021 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
13 | 12 | Course 3 | 24 | Birmingham | Teacher 10 | 15/12/2021 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
14 | 13 | Course 2 | 24 | Birmingham | Teacher 2 | 01-Dec-22 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
15 | 14 | Course 2 | 24 | Birmingham | Teacher 2 | 02-Feb-22 | Wednesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
16 | 14 | Course 3 | 28 | Manchester | Teacher 3 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | |||
17 | 15 | Course 3 | 28 | Manchester | Teacher 3 | 22/2/2022 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
18 | 16 | Course 4 | 23 | London | Teacher 4 | TBC | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
19 | 17 | Course 5 | 98 | Manchester | Teacher 1 | 28/9/2021 | Tuesday | 0 | 0 | 09:00 | 10:00 | 01:00 | ||
Sheet3 |
Scheduling Issues highlighted above
Teacher 1 is scheduled to Teach in BOTH London & Manchester on Tuesday 28/9/21 between 09:00 and 10:00 - Row 2 and Row 19 should be highlighted in YELLOW as a clash
Teacher 2 is scheduled to teach BOTH Course 2 and Course 8 at the same time on 28/9/21 in different rooms in London - Row 6 & 7 should be highlighted in YELLOW as a clash
Teachers 8 & 10 are scheduled to teach a different course at exactly the same time in the SAME ROOM on 15/12/2021 - rows 12 and 13 should be highlighted as a clash
There is missing delivery date infromation in Row 16 - this row should be highlighted in Yellow
Row 18 CONTAINS TBC in delivery dates column so row should be highlighted in Yellow
Row 9 Doesn't have a room number so should be highlight in Yellow