Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • 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).
thanks

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

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

with

LookAt :=xlwhole
0
 
COACHMAN99Author Commented:
excellent - thanks!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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