• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

excel search for left of string

Hi People,
I need to wire a button to search for the first string that starts with a parameter.
When I use the following, I get the first string that contains the parameter. How to I get the former (left).

    Cells.Find(What:=Range("ffind"), After:=ActiveCell, LookIn:=xlFormulas, LookAt _
        :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
        False, SearchFormat:=False).Activate
1 Solution
Saqib Husain, SyedEngineerCommented:

What:=Range("ffind") & "*"


LookAt :=xlwhole
COACHMAN99Author Commented:
excellent - thanks!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now