Results 1 to 2 of 2

vlookup and row highlight in vba

Threaded View

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    Delaware, US
    MS-Off Ver
    Excel 2003
    Posts
    1

    vlookup and row highlight in vba

    Hello,

    I begin this by stating that I am a neophyte's apprentice when it comes to macros and scripting. I've created a few tools that make my life easier, and I'm stuck trying to create what I need now.

    I have one spreadsheet with a row of entries (let's call it "sheet-A") that I want to be able to perform a vlookup on while I'm in another sheet("sheet-B"). I want the matching results of the vlookup, located in column C of sheet-B, to then be highlighted in yellow, as well as the entire row.

    If it helps at all, the entries in sheet-A are suspended items that I want to be able to compare from my current list of items in sheet-B, and highlight the entire row to flag for further review.

    I'm sure there may be an easier way to solve this. I tried to make a very long "If cell.Text = "entry1" Or cell.Text = "entry2" with a Then at the end, and the following:
    With .EntireRow.Interior
            .ColorIndex = 6
            .Pattern = xlSolid
            .PatternColorIndex = xlAutomatic
    I kept getting errors with that method, and had to enter in each entry of my suspended items in the if/or statement.

    Any help that anyone can offer on this would be much appreciated.

    Thanks...
    Last edited by Leith Ross; 10-08-2009 at 07:00 PM.

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