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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -