Hello All,
I have excel 2013
There are 2 sheets
Sheet1, Sheet2
Data Starts from Row 12 on Sheet1 and Sheet2 (as shown in the sample attached)
I want a Worksheet_Activate Macro
Which should look up for dates in Col D and highlight the entire row based on the dates of the end of the month
If multiple entries are there for the end of the month then only the last row should be highlighted
Eg Sheet1- Row 19 and Row 20 are both 31-Jan-2018 then only Row 20 to be highlighted.
If the end of the Month is Friday or Saturday then it should highlight the day which is a day before
Eg Sheet2- Row 28 is 29-Mar-2018 which is a Thursday and it is highlighted and Row 35 is 28-Jun-2018 which is highlighted. Also Row 42 is 30-Aug-2018 which is a Thursday and it is highlighted
If the end of the month date is falling on a Friday or Saturday, the previous Thursday row to be highlighted
Hope I am clear
Any help would be appreciated
Thanks in advance
Rehana
Bookmarks