UsedObjects Interface
Represents objects that have been allocated in a workbook.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)
Use the UsedObjects property of the Application object to return a UsedObjects collection.
Once a UsedObjects collection is returned, you can determine the quantity of used objects in a Microsoft Excel application using the Count property.