+ Reply to Thread
Results 1 to 3 of 3

Finding the Excat text in a range

  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    26

    Question Finding the Excat text in a range

    Hi,

    At the moment I am using the following code to find specific string in a range.

    Set found = roster_list.Find(temp)

    The problem is that even if there is a cell in roster_list with the value "0.5" but my temp is "0", it says that my text was found. How can i make sure that it matches the whole term.

    Please help!

  2. #2
    Registered User
    Join Date
    08-24-2005
    Location
    Philippines
    Posts
    75

    Wink Try this...

    Hi! Try the following:

    Set found = roster_list.Find(temp, LookAt:=xlWhole)

    regards...

    Quote Originally Posted by schoujar
    Hi,

    At the moment I am using the following code to find specific string in a range.

    Set found = roster_list.Find(temp)

    The problem is that even if there is a cell in roster_list with the value "0.5" but my temp is "0", it says that my text was found. How can i make sure that it matches the whole term.

    Please help!

  3. #3
    Registered User
    Join Date
    08-24-2005
    Posts
    26

    Thumbs up Thanx

    Thanx, that worked!

    Quote Originally Posted by T-容x
    Hi! Try the following:

    Set found = roster_list.Find(temp, LookAt:=xlWhole)

    regards...

+ 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