I have some code that parses through a table to insert values into a query to pull data from MS Access.
Using Office 365/Excel 365.
How do I set the table without having to use the ActiveSheet command?
Here's the bits of code in play, so to speak:
Is there a way to set the table without using "ActiveSheet"?
I tried:
which both returned errors.
Thanks!!
Matt
Using Office 365/Excel 365.
How do I set the table without having to use the ActiveSheet command?
Here's the bits of code in play, so to speak:
Code:
Dim tbl As ListObject
Set tbl = ActiveSheet.ListObjects("Data_Table")
Is there a way to set the table without using "ActiveSheet"?
I tried:
Code:
Set tbl = ThisWorkbook.ListObjects("Data_Table")
Set tbl = ListObjects("Data_Table")
which both returned errors.
Thanks!!
Matt