Bill Stenson
New Member
- Joined
- Jul 24, 2016
- Messages
- 1
Hi,
This is my first post on here, I hope you can help
I am building a staffing plan for work. I have the weekly plan setup on sheet 1, which looks like this:
[TABLE="width: 724"]
<tbody>[TR]
[TD][TABLE="width: 724"]
<tbody>[TR]
[TD]DUTY[/TD]
[TD][/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]Th[/TD]
[TD]F[/TD]
[TD]S[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]A. Blundell[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The annual leave for the week is on sheet 2 in the same format. I have been trying (and failing) to build a macro that will read the annual leave list for each day of the week, and delete anyone that is on leave on a given day.
The names in the weekly plan on sheet 1 are selected from a data validation so I can't use any formulas in the cells.
Any advice will be greatly appreciated
Bill
This is my first post on here, I hope you can help

I am building a staffing plan for work. I have the weekly plan setup on sheet 1, which looks like this:
[TABLE="width: 724"]
<tbody>[TR]
[TD][TABLE="width: 724"]
<tbody>[TR]
[TD]DUTY[/TD]
[TD][/TD]
[TD]M[/TD]
[TD]T[/TD]
[TD]W[/TD]
[TD]Th[/TD]
[TD]F[/TD]
[TD]S[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[TD]L. Fawcett[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[TD]S. Mead[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]S. Wood[/TD]
[TD]A. Blundell[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[TD]P. Lee[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The annual leave for the week is on sheet 2 in the same format. I have been trying (and failing) to build a macro that will read the annual leave list for each day of the week, and delete anyone that is on leave on a given day.
The names in the weekly plan on sheet 1 are selected from a data validation so I can't use any formulas in the cells.
Any advice will be greatly appreciated
Bill