mustafaqusay
New Member
- Joined
- Jun 22, 2015
- Messages
- 18
Good day all .. I am trying to write a macro to read dates from 2 columns. if the difference between them is 5,4,3,2, or 1 day then one of the dates to be red. below is what I put together but its not working. Please help .
if cells(r,1)-5 = cells (r,2) or cells (r,1)-4 = cells (r,2) or cells ...etc then cells (r,1).Interior.Color = vbYellow
if cells(r,1)-5 = cells (r,2) or cells (r,1)-4 = cells (r,2) or cells ...etc then cells (r,1).Interior.Color = vbYellow