+ Reply to Thread
Results 1 to 2 of 2

Macro with Conditional Formatting to color row based on date column

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Indianapolis, IN
    MS-Off Ver
    365
    Posts
    3

    Macro with Conditional Formatting to color row based on date column

    I have a report that runs every day (same columns) with project dates from from today thru weeks into the future. We need to be able to review the projects due in the next 14 days, every day the report runs.

    I know how to color rows based on the value in a cell with conditional formatting, but I can't figure out how to make this work in a macro.

    We need to use a different RGB value for each day (today((), today()+1, today()+2, etc.)

    If i can get code for "today()", (RGB value 255,0,0) then I can copy that and adjust it for the next 13 days.

    The report varies in the number of rows (hundreds to a few thousand), and is 35 columns wide.

    The Date column is Col D.

    We won't need to clear any formatting, as the report runs every day, and we will only run the macro once a day.

    Grateful for any help available.

  2. #2
    Forum Contributor
    Join Date
    10-13-2015
    Location
    Culloden, West Virginia
    MS-Off Ver
    2010
    Posts
    168

    Re: Macro with Conditional Formatting to color row based on date column

    Why does this need to be in a macro vs. a conditional format?

    If you could attach a small example that would be helpful to trial on.

    If you're able to attach an example, please mock-up up the results you want so it's clear what you're shooting for.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 09-02-2018, 01:09 PM
  2. Replies: 13
    Last Post: 12-13-2015, 03:09 AM
  3. Replies: 13
    Last Post: 07-09-2014, 04:10 PM
  4. Replies: 1
    Last Post: 05-28-2014, 06:31 PM
  5. Replies: 6
    Last Post: 03-20-2012, 12:08 AM
  6. Replies: 6
    Last Post: 12-22-2008, 06:16 PM
  7. Conditional Formatting Formula to Color Rows Based on Column Value
    By SteveC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-26-2006, 01:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1