Method: Item for Areas
- Updated2024-09-12
- 1 minute(s) read
DIAdem VIEW > Methods > Method: Item for Areas
Method: Item for Areas
Returns the Area object associated with a specific name or index in DIAdem VIEW.
Set oArea = Object.Item(NameOrIndex)
| Object | Areas Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the specific area. DIAdem compiles the index from the list of alphabetically sorted area names. The index of an area might change when the number of name of the area change. |
| oArea | Area Returned object |
| Note You can always omit the Item method because it is the standard element of the collection. |
The following example displays a message with the name of the first area. The second line of the example is the simplified form of the first line:
| VBScript | Python |
Call MsgBoxDisp("Name of first area: " & View.ActiveSheet.Areas.Item(1).Name) Call MsgBoxDisp("Name of first area: " & View.ActiveSheet.Areas(1).Name)