Find text which is part of cell value in .Find function VBA excel -


i have code below, have problem, not know how can find row sometext included in cell value. if explanation not clear example: sometext = 1200 , want row index cell value follow: 1200.0 , 1200.1. in advance help.

set cell1 = selection.find(what:=sometext, after:=activecell, lookin:=xlvalues, _     lookat:=xlwhole, searchorder:=xlbyrows, searchdirection:=xlnext, _     matchcase:=false, searchformat:=false) 

just change lookat:=xlwhole lookat:=xlpart

set cell1 = selection.find(what:=sometext, after:=activecell, lookin:=xlvalues, _     lookat:=xlpart, searchorder:=xlbyrows, searchdirection:=xlnext, _     matchcase:=false, searchformat:=false) 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -