A problem with Leith's code is that it doesn't take into account different lengths of months. For instance, if the last ED* is placed 31st January, it tries to place the next ED* on the 31st April. How would you want this treated?
edit: Another thought
I see you have a space for "NEXT POTENTIAL EARNED DAY". Could the macro first calculate the next potential day and enter it in this cell, then only enter it in the main calender if the current date is equal to or greater than that date? That would solve the problem of lingering future ED*s which are no longer available.
e.g. Last ED* 17th March, 17th June is calculated and entered into the Next Potential Earned Day cell. If an L etc. is added on 17th April , the Next Potential Earned Day cell changes to 17th July but, if not, when the spreadsheet is opened on 17th June (or later), ED* is then entered into the main calender.
edit:
Here's what I mean
Note: I have named AF5:AG5 "NPED" for this macro. It also recalculates invalid dates to the next valid date (so 31st January --> 1st May rather than 31st April)
Bookmarks