This documentation is archived and is not being maintained.

ListObjects Object (Excel)

A collection of all the ListObject objects on a worksheet. Each ListObject object represents a table in the worksheet.

Use the ListObjects property of the Worksheet object to return the ListObjects collection.

The following example creates a new ListObjects collection which represents all the tables in a worksheet.

Set myWorksheetLists = Worksheets(1).ListObjects