DIAdem Help

Property: Count for ReportObjects

  • Updated2024-09-12
  • 1 minute(s) read

Property: Count for ReportObjects

Returns the number of objects in a worksheet in DIAdem REPORT.

Object.Count
ObjectReportObjects
Object with this property
Object.CountLongInteger with read access

The following example displays the types and the names of the objects in the current worksheet:

VBScriptPython

 

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)

Log in to get a better experience