Shade the rows for different working days

Solved/Closed
Carman - Jul 19, 2010 at 04:15 AM
 Carman - Jul 19, 2010 at 10:16 PM
Hello,
I need a VBA code that allow me to shade the row color in blue when the date in a cell is performed in the last 3 days of working days . Otherwise, shade the row in yellow if the work is performed in the first 2 days of working days. Can anyone help?
Thanks.
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jul 19, 2010 at 04:51 AM
If all you need to color the row based on the difference between current calendar date and the date in the cell, then you dont need VB. This can be done via Conditional Format.

However if you want to color the row and retain it on ward, then you would need a VB code. By retaining I mean, let say today the conditions are true and the row is blue. Now you save the file and after a month you open it. Now if you still want the book to show the colors as they were when you closed the book, then you would be needing a VB code.
1
I get what you mean. Thank you very much!
0