Results 1 to 8 of 8

.Find Not Finding Correct String

Threaded View

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    .Find Not Finding Correct String

    Hi all,

    I am having issues with Find. I have the following code
    Debug.Print WsMth.Cells.Find(what:=SelStrg, After:=WsMth.Cells(7, 4), LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False, MatchByte:=True, SearchFormat:=False).Address
    For some reason, this does not always find the exact SelStrg and I don't know why. I don't know if I should upload my workbook for this one but if you think I should then let me know. In stating this, I thought that xlWhole was used to find an exact match but it is failing me. Any suggestions?

    Regards:
    Last edited by Mordred; 11-22-2011 at 02:28 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

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