+ Reply to Thread
Results 1 to 5 of 5

VBA for exact find

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    VBA for exact find

    Hi,

    Below code search "Created" and then copy the entire rows to paste in Dump1 sheet. Problem is, it do not find the exact word "Created".. If there is column with "Created by" it sometime also pulls that column.

    How to make it exact search?

    Please Login or Register  to view this content.
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA for exact find

    Here is what i use to search and it appears to search for only the exact wording that the user has put in the msgbox

    Please Login or Register  to view this content.
    Thank those who have helped you by clicking the Star * below their name and please mark your post [SOLVED] if it has been answered satisfactorily.

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA for exact find

    Thanks Jesse. But I want to avoid the input box.

  4. #4
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    713

    Re: VBA for exact find

    Please Login or Register  to view this content.
    got it working by adding LookAt:=xlWhole

  5. #5
    Forum Contributor Jack7774's Avatar
    Join Date
    08-31-2012
    Location
    Georgia, US
    MS-Off Ver
    Excel 2010
    Posts
    576

    Re: VBA for exact find

    You can have the
    Please Login or Register  to view this content.
    part changed to reference a cell or something you put hardcoded into the macro. That is up to you if you don't want to input box.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. add in the parameters to the Find function to only find an exact match.
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 08:57 AM
  2. [SOLVED] Problem with Find function. Need to find Exact match
    By SMILE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2012, 07:07 AM
  3. 'Find' to find exact match only
    By Kristengeyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2011, 03:37 PM
  4. sumproduct, find exact
    By opirnia in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-24-2010, 10:17 AM
  5. Find exact text
    By SER01 in forum Excel General
    Replies: 3
    Last Post: 06-13-2009, 04:04 PM

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