L
Legacy 259939
Guest
I have a spreadhseet that I update and copy from multiple times a day. I am trying to automate as much formatting as possible with vba.
I want to highlight a#,j# if c# is a certain date. I have a rough idea of the formula for choosing date it is the code I am having trouble with. I found code to highlight the single cell but I want to highlight the a - j of that row, not the entire row.
I have 3 sets of dates I am looking for:
if c#=today then a#,j#.interior=yellow
if c# <today and >=(today-7) then a#,j#.interior=light red
if c# <(today-7) then a#,j#.interior=dark red with white text
I know conditional formatting will do this but when the data is copied and pasted somewhere else the formatting does not come with it.
Thanks!
I want to highlight a#,j# if c# is a certain date. I have a rough idea of the formula for choosing date it is the code I am having trouble with. I found code to highlight the single cell but I want to highlight the a - j of that row, not the entire row.
I have 3 sets of dates I am looking for:
if c#=today then a#,j#.interior=yellow
if c# <today and >=(today-7) then a#,j#.interior=light red
if c# <(today-7) then a#,j#.interior=dark red with white text
I know conditional formatting will do this but when the data is copied and pasted somewhere else the formatting does not come with it.
Thanks!