+ Reply to Thread
Results 1 to 10 of 10

if it is true then change the row color

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Exclamation if it is true then change the row color

    hi every body
    at first i would like to tanks from you and your very very good site then my problem is :
    i have a table in excel wich filled by some data
    I want if progress column is changed at below issue then chnged the color of same row for example:

    for each i (i means number of row)
    if cells(i,10)>0% then yellow color for row(i)
    if cells(i,10)>40% then blue color for row(i)
    and . . .
    it means for each if in the cells(i , j ) we have diffrent color for same row(i)

    thanks in advanced for your attention
    Attached Files Attached Files
    Last edited by pedjvak; 11-14-2012 at 04:26 AM.

  2. #2
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: if it is true then change the row color

    pedjvack,

    Do you have an example spreadsheet that I could look at?


    Simeon

  3. #3
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: if it is true then change the row color

    hi,

    why dont you use conditional formatting...

    sid

  4. #4
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: if it is true then change the row color

    I send my sample file , thanks for your attention

  5. #5
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: if it is true then change the row color

    hi,

    try this

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: if it is true then change the row color

    thanks for your answer
    but
    it is not work which i expected
    it painted entire row but I want paint from a to f for each row like i painted in my sample manually
    and the other problem is for each percent which i show you in my sample in column "e" i want give a diffrent color that show you in my sample file
    your code act diffrent plz try by yourself maybe i am wrong

  7. #7
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: if it is true then change the row color

    oh, my bad,

    try this:
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: if it is true then change the row color

    thanks for your answer
    it is complcate for me(V.B code) but it is working
    I attached the file with some bugs which I try to show it to you when I run the code
    it would be appreciated if you fix it
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: if it is true then change the row color

    hi,

    this has been fixed.

    sample(1).xlsm

    sid

  10. #10
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: if it is true then change the row color

    thanks so much

+ 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