From 7:00 PM CST Friday, January 24th - 7:00 PM CST Sunday, January 26th, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Method: Item for ReportObjects

DIAdem 2018 Help

Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)

DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Returns the object that is associated with a specific name or with a specific index.

Set oReportObject = Object.Item(NameOrIndex)
Object with this method
Specifies the name or the index of the object.
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

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

Dim oMyObjects, i, sOutput
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
Call MsgBoxDisp(sOutput)


Not Helpful