ListObject 对象 (Excel)ListObject object (Excel)

表示 ListObjects 集合中的 list 对象。Represents a list object in the ListObjects collection.


ListObject 对象是 ListObjects 集合的成员。The ListObject object is a member of the ListObjects collection. ListObjects 集合包含工作表上的所有列表对象。The ListObjects collection contains all the list objects on a worksheet.


使用 Worksheet 对象的 ListObjects 属性可返回 ListObjects 集合。Use the ListObjects property of the Worksheet object to return a ListObjects collection.

以下示例将为活动工作簿的第一个工作表中的默认 ListObject 对象添加新的 ListRow 对象。The following example adds a new ListRow object to the default ListObject object in the first worksheet of the active workbook.

Dim wrksht As Worksheet 
Dim oListCol As ListRow 
Set wrksht = ActiveWorkbook.Worksheets("Sheet1") 
Set oListCol = wrksht.ListObjects(1).ListRows.Add



另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.