excel - VBA find function on table array -
excel - VBA find function on table array -
i trying delete rows not contain specific character in array of table column. array loads info fine, when trying set "x" find function getting "object required" , stumping me.
i sure simple, every solution have come across makes no difference in outcome.
srchrng = range("os[os version]") set x = srchrng.find(what:="=", lookat:=xlwhole, lookin:=xlvalues) if x nil x.entirerow.delete
tested - set within with
block this:
with worksheets(1).range("os[os version]") set x = .find(what:="=", lookat:=xlwhole, lookin:=xlvalues) if not x nil x.entirerow.delete end
note searching cells have equals sign , nil else.
arrays excel vba excel-vba
Comments
Post a Comment