+ Reply to Thread
Results 1 to 2 of 2

Search routine

  1. #1
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Search routine

    The below script takes a strings from one column (cell by cell) and compares it with strings in another column. If it finds a match it creates a hyperlink between the two cells.

    With this script I have one problem. I will give an example.
    Lets say the seach string is "link". The script will create a hyperlink to any cell that contains this string, even for example to "blinker".
    That is not good. Is there a way to modify this code so that hits are limited to exact matches?

    Please Login or Register  to view this content.
    Last edited by dschmitt; 06-17-2010 at 10:48 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-21-2010
    Location
    Tokyo, Japan
    MS-Off Ver
    Excel 2007
    Posts
    502

    Re: problem with search routine

    found the solution.

    change LookAt:=xlPart to LookAt:=xlWhole

+ 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