+ Reply to Thread
Results 1 to 8 of 8

Change color of entire rows if a value is entered in a cell in column I

Hybrid View

  1. #1
    Registered User
    Join Date
    12-10-2009
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2007
    Posts
    15

    Change color of entire rows if a value is entered in a cell in column I

    First of all, let me say that I am very new to Excel (other than just typing stuff into the spreadsheet). That being said, please be gentle and speak as if talking to a child, lol.

    I have a spread sheet that I am trying to manipulate. What I am trying to do is to get all rows that have a value entered into column "I" to turn red. Thanks for any help you can provide

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Change color of entire rows if a value is entered in a cell in column I

    so click right button of mouse on the name of your sheet and select view code and paste this code in the window which appeared
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Column = 9 Then
    Target.EntireRow.Interior.ColorIndex = 3
    End If
    End Sub
    Last edited by tom1977; 02-29-2012 at 06:45 PM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    12-10-2009
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Change color of entire rows if a value is entered in a cell in column I

    Thanks, Tom. However, it doesnt give me the option of choosing view code. I am assuming because there is none to view.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Change color of entire rows if a value is entered in a cell in column I

    try to press ALT + F11 then find in the left window name of sheet in which this macro should works and double-click this sheet. after this paste the code into widow which appear

  5. #5
    Registered User
    Join Date
    12-10-2009
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Change color of entire rows if a value is entered in a cell in column I

    I tried exactly what you said but nothing happened. The code is written and in the proper place but none of the rows with a value entered into column "I" turned red. Basically, what I am trying to do is if a date is entered into column "I" then that means that task is complete and I want the whole row to turn red so I know to bypass that row (meaning it is complete and no longer needs my attention).

    thanks for your help thus far

  6. #6
    Registered User
    Join Date
    12-10-2009
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Change color of entire rows if a value is entered in a cell in column I

    Disregard my last reply. It worked beautifully, Tom. It just didn't do it with data that was already entered in the spreadsheet but as soon as I added something to another row, it worked!

    Thanks so much!

  7. #7
    Registered User
    Join Date
    08-20-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Change color of entire rows if a value is entered in a cell in column I

    Hi, I have exactly the same need but have tried this and it doesn't work for me. How does it know what coloum I enter my date in? Please help.
    Thanks Mark

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Change color of entire rows if a value is entered in a cell in column I

    Markbendall,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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