The display below has not quite come out properly but it should show all the days of the month. It is an activity planner. There are also lots more rows
There is a button on the menu that shows a user form from which a date is selected. The code then colours the selected column grey which signifies that this day is a Holiday.
My problem is how to skip over the rows that contain merged cells that cover the selected column. I already have code that can cope with merged cells that cover the entire row (example rows 7, 11 & 15) but not row 8 if I select column I for the holiday
So what I need is code to do this: If I want Friday 9th to be a holiday then all cells in range I5:I15 to be coloured grey except those cell that are merged
Hope this is not too confusing
Book1 | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |||
1 | (UsethespacebelowtoenterMonthlyTasks) | |||||||||||||||||||||||||||
2 | ||||||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||||
4 | ||||||||||||||||||||||||||||
5 | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | T | W | T | F | S | S | M | ||
6 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | ||
7 | HQStaff | |||||||||||||||||||||||||||
8 | ||||||||||||||||||||||||||||
9 | ||||||||||||||||||||||||||||
10 | ||||||||||||||||||||||||||||
11 | ProjectsStaff | |||||||||||||||||||||||||||
Sheet1 |
There is a button on the menu that shows a user form from which a date is selected. The code then colours the selected column grey which signifies that this day is a Holiday.
My problem is how to skip over the rows that contain merged cells that cover the selected column. I already have code that can cope with merged cells that cover the entire row (example rows 7, 11 & 15) but not row 8 if I select column I for the holiday
So what I need is code to do this: If I want Friday 9th to be a holiday then all cells in range I5:I15 to be coloured grey except those cell that are merged
Hope this is not too confusing