+ Reply to Thread
Results 1 to 5 of 5

Change Row color based on cell value

  1. #1
    Registered User
    Join Date
    12-01-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Change Row color based on cell value

    Hi,

    I'm trying to change range row color based on cell value.
    my code works but instead of changing range row color it changes entire row.
    I want To change color just in A:H.

    Thank you

    here is my code:
    Please Login or Register  to view this content.
    Moderators note: code tags added for you - this time
    Attached Files Attached Files
    Last edited by FDibbins; 12-19-2012 at 01:57 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Change Row color based on cell value

    Try this...

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 12-19-2012 at 01:50 PM.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Change Row color based on cell value

    tedy, welcome to the forum.

    2 things though...
    1. do you really need to do this through VBA? regular conditional formatting will do it for you.

    2. Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-01-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Change Row color based on cell value

    Thank you very much
    This is exactly what I wanted to do.
    Appreciated. Thank you

  5. #5
    Registered User
    Join Date
    12-01-2012
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Change Row color based on cell value

    Sorry for not keeping the rules, this was my first question.
    Next time I will do it properly
    Thank you one more time

+ 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