Consulting

Results 1 to 4 of 4

Thread: Find Function - ONLY find what is specified

  1. #1
    VBAX Regular
    Joined
    Oct 2010
    Posts
    49
    Location

    Find Function - ONLY find what is specified

    Hi Guys,

    At the moment when I search for a string such as "WGG", it is also finding results such as "WGGO". Is there a way to search for only what you specified and nothing else afterwards?

    Thank you for your help!!

    Kind Regards,

    Giri

  2. #2
    Hi Giri,

    Obviously don't know what code you're currently using, but it sounds like you need to change or add the LookAt argument, so it looks something like this:

    Find(What:="WGG", LookIn:=xlValues, LookAt:=xlWhole)
    HTH

    Robert

  3. #3
    VBAX Regular
    Joined
    Oct 2010
    Posts
    49
    Location
    Hi Trebor,

    Thank you for that! I started trying to implement all sorts of overly complicated methods... =D

    Kind Regards,

    Giri

  4. #4
    I'm glad it's all sorted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •