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
Post a Comment