Forum Discussion
ADGToreUp
3 years agoBrass Contributor
VBA Help with Dim and Set tables using listobjects.
Trying to set a table with listobjects, and it comes up with runtime error '438': Object doesn't support this property or method. please help if you can, my code is below and it highlights the row "...
- 3 years ago
ws1, ws2 etc. are already defined as worksheets of wb, so you should not use wb.ws1, wb.ws2 etc. Just ws1, ws2 etc. is sufficient:
Set tb1 = ws1.ListObjects("Totals")
HansVogelaar
3 years agoMVP
ws1, ws2 etc. are already defined as worksheets of wb, so you should not use wb.ws1, wb.ws2 etc. Just ws1, ws2 etc. is sufficient:
Set tb1 = ws1.ListObjects("Totals")
- ADGToreUp3 years agoBrass ContributorThank you! That was driving me crazy!