+ Reply to Thread
Results 1 to 7 of 7

how do I allow a VBA search to not look for only exact matches

  1. #1
    Registered User
    Join Date
    10-18-2021
    Location
    Milton Keynes
    MS-Off Ver
    Office 16
    Posts
    8

    how do I allow a VBA search to not look for only exact matches

    hi

    I have this code,
    Please Login or Register  to view this content.
    Which is not working. what I am trying to achieve is;
    if all of search value is in any part of search field or vice versa then do X

    Any help?
    Last edited by Christy_kaye; 10-23-2021 at 10:12 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: how do I allow a VBA search to not look for only exact matches

    hi,

    try this:
    Please Login or Register  to view this content.
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

  3. #3
    Registered User
    Join Date
    10-18-2021
    Location
    Milton Keynes
    MS-Off Ver
    Office 16
    Posts
    8

    Re: how do I allow a VBA search to not look for only exact matches

    That returned blank values in the output cells

  4. #4
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: how do I allow a VBA search to not look for only exact matches

    sorry i switched them around

    Please Login or Register  to view this content.
    try this

  5. #5
    Registered User
    Join Date
    10-18-2021
    Location
    Milton Keynes
    MS-Off Ver
    Office 16
    Posts
    8

    Re: how do I allow a VBA search to not look for only exact matches

    Wicked that's done it so that the search value can be in any part of the search field.
    How can I have it so that if the whole of the search field is in the search value it also dose X.

    thanks

  6. #6
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: how do I allow a VBA search to not look for only exact matches

    Please Login or Register  to view this content.
    i think this would do that

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,068

    Re: how do I allow a VBA search to not look for only exact matches

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. search 2 criteria and if it matches give me the number of matches
    By sxch12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2017, 03:16 PM
  2. Replies: 4
    Last Post: 01-06-2015, 09:15 PM
  3. Replies: 2
    Last Post: 09-15-2014, 09:58 AM
  4. Replies: 0
    Last Post: 08-11-2012, 03:25 PM
  5. Trouble with exact matches!
    By tripvanwinkel in forum Excel General
    Replies: 3
    Last Post: 09-06-2011, 09:10 AM
  6. Finding not exact matches
    By anthonyrambo in forum Excel General
    Replies: 7
    Last Post: 07-08-2011, 03:37 PM
  7. Non exact matches in HLOOKUP
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-27-2009, 11:28 AM

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