+ Reply to Thread
Results 1 to 2 of 2

Search for text in cell...

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2007
    Posts
    16

    Search for text in cell...

    Ok, so i got this code of of excelvbamacro.com and it works perfectly fine in searching for something...but i'm having one issue. So say i try to search for "4.2" .. it will find 4.2, it will also find it under "44.2"

    Basically i wanted to see if anybody knows how to convert this code to find only exactly what you are searching for in the cell. Thanks for the help guys!


    Please Login or Register  to view this content.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Search for text in cell...

    Perhaps change

    LookAt:=xlPart to xlWhole

    However if the 4.2 appears as a substring - eg "X 4.2" this won't work.

+ 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