+ Reply to Thread
Results 1 to 3 of 3

How to find the exact cell content in a column

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    34

    How to find the exact cell content in a column

    Dear Friends,
    i have been trying to find a cell content in a column.
    below is the code that i am using

    Selection.Find(What:="CAE-Z000123", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
    :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
    False, SearchFormat:=False).Activate

    my problem is the code above serches the cell even if half the contents are found in any of the cell in the column. what i need is exact find of the cell value in a column.

    Hope i have clarified to the larger extent.
    please friends if some one could help me out.

  2. #2
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: How to find the exact cell content in a column

    Try changing xlPart to xlWhole

  3. #3
    Registered User
    Join Date
    05-11-2012
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: How to find the exact cell content in a column

    thanks you very much Thalassa, found the solution from your answer.
    thanks a lot once again....

+ 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