Hi,
I'm trying to automatically populate a specific cell with some text and some formatting based on whether a date falls with a date range. To try and explain this further, these are the fields I'm looking at:
Cell G1 = Start Date
Cell G2 = End Date
Cell B13 currently has an 'IF' statement to apply the same date as Cell G1 (This is week 1)
Cells B14:B64 are weeks 2 to 52 and populate by applying 7 days to the previous date (e.g. cell B14 is B13 plus 7 days, cell B15 is B14 plus 7 days)
Cell C13:C64 are the cells that I want to automatically populate.
The rule I want is that if Cells B13:B64 fall within the start and end date range in cells G1 and G2 then populate Cell C13:C64 with "ML/AL", I also want the cells formatted with a fill colour of purple (R112,G48,B160) and a font colour of white. This would be the same for the rest of the weeks.
Is this possible with VBA?
I'm trying to automatically populate a specific cell with some text and some formatting based on whether a date falls with a date range. To try and explain this further, these are the fields I'm looking at:
Cell G1 = Start Date
Cell G2 = End Date
Cell B13 currently has an 'IF' statement to apply the same date as Cell G1 (This is week 1)
Cells B14:B64 are weeks 2 to 52 and populate by applying 7 days to the previous date (e.g. cell B14 is B13 plus 7 days, cell B15 is B14 plus 7 days)
Cell C13:C64 are the cells that I want to automatically populate.
The rule I want is that if Cells B13:B64 fall within the start and end date range in cells G1 and G2 then populate Cell C13:C64 with "ML/AL", I also want the cells formatted with a fill colour of purple (R112,G48,B160) and a font colour of white. This would be the same for the rest of the weeks.
Is this possible with VBA?