Property: Count for ReportObjects
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Properties > Property: Count for ReportObjects
Property: Count for ReportObjects
Returns the number of objects in a worksheet in DIAdem REPORT.
Object.Count
Object | ReportObjects Object with this property |
Object.Count | LongInteger with read access |
The following example displays the types and the names of the objects in the current worksheet:
VBScript | Python |
Dim oMyObjects, i, sOutput Set oMyObjects = Report.ActiveSheet.Objects For i = 1 to oMyObjects.Count sOutput = sOutput & "Object type: " & oMyObjects.Item(i).ObjectType & VBTab & _ "Element name: " & oMyObjects.Item(i).Name & VBCrLf Next Call MsgBoxDisp(sOutput)