excel vba - How do I find the cell in a listobject table in a specific column that has "findstring" in it? -


i using excel 2013. have listobject excel table called assembly need find cell contains "asmb1" in column "item name"

here have work:

dim itemrows integer set assemblytable = worksheets("assembly").listobjects("assembly") itemrows = assemblytable.listcolumns("item name").databodyrange.rows.count 

here itemrows gets proper number of rows in table.

now try search , fails:

dim itemrows integer set assemblytable = worksheets("assembly").listobjects("assembly") itemrows = assemblytable.listcolumns("item name").databodyrange.find("asmb1") 

this fails following message:

run-time error '91': object variable or block variable not set 

thanks ideas. rich


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -