The run subroutine is only for illustration.
You're planning to have a macro connected to the OK button, yes?
And David is PM David H, yes?
Then you will need a macro like:
And this macro will be connected to your OK button.
Now, I assume that you will have worksheets for Dave, Tony, Sante, etc.
If my assumptions are correct,you will need an if ... end if statement for each person.
It looks like each set of dates are even numbers.
So Dave would be L8 & N8, Sante would be L10 & N10, etc.
And the worksheet name will be different.
Another way of doing this, is to have a string of worksheet names.
Now I haven't tested either of these codes (and obviously, the worksheet names are just made up for illustration purposes). And I'm not so good at writing code that I don't make mistakes.
If you would upload a workbook containing everyone's worksheet I would get the above codes to work for you.
But the subroutine "BlackOut" I've tested and it seem to work perfectly.
Bookmarks