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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -