Method: Remove for Areas
- Updated2024-09-12
- 1 minute(s) read
DIAdem VIEW > Methods > Method: Remove for Areas
Method: Remove for Areas
Deletes one element from the Areas collection.
Object.Remove(NameOrIndex)
| Object | Areas Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the area that is to be deleted. |
The following example deletes the enabled area:
| VBScript | Python |
Dim MyName: MyName = View.ActiveSheet.ActiveArea.Name Call View.ActiveSheet.Areas.Remove(MyName)