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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -