+ Reply to Thread
Results 1 to 5 of 5

Fill range of rows based on a value

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Fill range of rows based on a value

    Hello, I need your help. I'm very new to macros in excel so what I wanted to do is to
    change the range colors of the rows from A1:W50 based on a value.

    For example if there's a value named Apple in Column A1, the code will highlight the row until Column W because that
    row have the value Apple.

    I hope that was clear.

    Thank You

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Fill range of rows based on a value

    Maybe:

    Please Login or Register  to view this content.
    You should be able to see where to change the values and colors accordingly. You may need to alter code to match your sheet name.

  3. #3
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Fill range of rows based on a value

    Ok so I tried it, and that's exactly what I need. I tried changing the value "Apple" to Column D but what happened was it highlighted Column D to W. I still want Columns A,B and C to be highlighted even if the value of the Apple is not on A how do you do that?

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Fill range of rows based on a value

    Well, you should have said so in the beginning. Altering just 1 thing can completely change the way code works.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Fill range of rows based on a value

    Thank You!

+ 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