+ Reply to Thread
Results 1 to 4 of 4

Adding another highlight function to my code that matches lists

  1. #1
    Registered User
    Join Date
    06-06-2008
    Posts
    13

    Adding another highlight function to my code that matches lists

    Hi,

    I have this code here that basically will search through a data list "A" by searching for each data element in list "L". If there is a match, then the element will be highlighted in A. Is there a way to highlight every element in data list L that is found in A? In other words, I would like the end product to have all found elements to be highlighted on both data list A and L. All items that havent been found would be unhighlighted. Any help would be awesome- thanks.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Try declaring SrchValue as a Range, adding Set to the line below
    Please Login or Register  to view this content.
    and adding the second line below
    Please Login or Register  to view this content.
    Does that do what you want?

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Have you considered using 2 dynamic ranges and data validation? If the =CountIf is >=1 then a match was found.

  4. #4
    Registered User
    Join Date
    06-06-2008
    Posts
    13
    Thank you guys, adding those two lines of code did the trick

+ 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