+ Reply to Thread
Results 1 to 6 of 6

Color if date in column n and stop color at column n

  1. #1
    Registered User
    Join Date
    11-13-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    7

    Color if date in column n and stop color at column n

    I'm trying to change the color of a row if there is a date in column "N". I want it to only color from column "A" to "N" of that row. I have a code but it colors the entire row instead of stopping at "N".

    Please Login or Register  to view this content.
    Last edited by dalet; 11-20-2009 at 09:49 AM. Reason: Mis-spelled and better explanation

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Color if date in column n and stop color at column n

    Hi Dalet,

    Try changing
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    Where 1 = column A and 14 = column N (14th letter of the alphabet).

  3. #3
    Registered User
    Join Date
    11-13-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Color if date in column n and stop color at column n

    Changed the code and now it changes the color of D3 through H14.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Color if date in column n and stop color at column n

    Wow, I must have had an off-moment.. mixed up the row/column refs.. use:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-13-2009
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Color if date in column n and stop color at column n

    That works much better. Is there a way to get this to run on all the worksheets at once?

    Thanks

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Color if date in column n and stop color at column n

    Yes, just loop through the sheets and put your code inside the loop, e.g.
    Please Login or Register  to view this content.
    Obviously you can put more code inside the For/Next loop to suit your needs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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