+ Reply to Thread
Results 1 to 5 of 5

Highlight rows if cells contain specific values

  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    Highlight rows if cells contain specific values

    I need help creating a macro to highlight entire rows if a cell in that row (C) contains specific values.

    Any ideas?

    Thanks in advance
    Last edited by VBA Noob; 12-24-2008 at 06:21 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429
    You can use a worksheet event to test the cell and highlight the row.

    Do you want all rows that have column C values that meet criteria highlighted or just the active row?

    What are the criteria? Example workbook may help.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46
    Was after all the rows that have these values in column C highlighted:

    Itsnotifier, threatnotifier, emeremail, sharedemail, hostemail and offhostemail

    I've got another macro i run first so I'll just stick it in there but I'm not sure how to work with colours in excel

    Thanks

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,429
    You would use code something like this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46
    Excellent, thanks Andy.

    Have a good christmas!

+ 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