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:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,017
Messages
5,834,960
Members
430,330
Latest member
drAli77

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top