Method: Exists for SelectedObjects
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: Exists for SelectedObjects
Method: Exists for SelectedObjects
Checks whether an object with a specific name already exists in the objects selected in the current worksheet of DIAdem REPORT.
bExists = Object.Exists(Name)
Object | SelectedObjects Object with this method |
Name | String Specifies the name of the selected object. |
bExists | Boolean Specifies whether the object with the specified name exists (TRUE) or not (FALSE) within the selected objects. |
The following example displays whether an object with the name 2DTable1 exists within the selected objects:
VBScript | Python |
Call MsgBoxDisp(Report.SelectedObjects.Exists("2DTable1"))