Re: VB code to color row text based on date being greater than system date

slick9456

New Member
Joined
Mar 27, 2013
Messages
17
Re: VB code to color row text based on date being greater than system date

Hello,

I have an urgent need for a VBA script that will color an entire rows text red, if the date found in Column U is greater than 6 months of the system date. I have tried myself with no avail.

I found this thread below though to be quite similar to my need and was wondering if anyone could assist in modifying the previously devised code to match my specific criteria above.

Code:
[URL]http://www.mrexcel.com/forum/excel-questions/687561-vbulletin-code-color-rows-based-specified-date.html[/URL]  <--Link Here


Thanks!
 
Last edited:

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

ztodd

Board Regular
Joined
Sep 17, 2014
Messages
221
Re: VB code to color row text based on date being greater than system date

Have you looked into conditional formatting yet?
 

slick9456

New Member
Joined
Mar 27, 2013
Messages
17
Re: VB code to color row text based on date being greater than system date

Have you looked into conditional formatting yet?

I have, but it must be VBA as the script would be added to a larger macro that would come out with an export of alot of data prior to being run. :eek:
 

ztodd

Board Regular
Joined
Sep 17, 2014
Messages
221
Re: VB code to color row text based on date being greater than system date

In that case, don't be afraid to take some time to look up the help pages on the different methods and functions you see in the vba code- and to use a lot of trial and error, maybe some test functions, to find out how they work. Some functions you'll likely need -

DATEADD, DATE, RANGE, RANGE.ENTIREROW, RANGE.FONT.COLOR

There are different ways of looping through cells or rows- I like using the WHILE statement.

Trust me, it will help you out to learn to research and develop your own code through trial and error.
 

Watch MrExcel Video

Forum statistics

Threads
1,108,987
Messages
5,526,068
Members
409,685
Latest member
Davetom

This Week's Hot Topics

Top