+ Reply to Thread
Results 1 to 2 of 2

vlookup and row highlight in vba

  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:
    Please Login or Register  to view this content.
    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.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: vlookup and row highlight in vba

    Hello chernab0g,

    Welcome to the Forum!

    It would be better if you posted all the code you have written. Posting your workbook is the best option. With the layout and code are available for review, you will receive answers faster.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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