The VP Get names command returns a collection of all defined "names" in the current sheet or in the scope designated by the scope parameter.
In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.
You can define where to get the names in scope using either the sheet index (counting begins at 0) or the following constants:
Constant |
Value |
Comment |
vk current sheet |
-1 |
Designates current sheet of the 4D View Pro area (default) |
vk workbook |
-2 |
Designates the entire workbook of the 4D View Pro area. |
The returned collection contains one object per name. The following object properties can be returned:
Property | Type | Description |
result[ ].name | Text | cell or range name |
result[ ].formula | Text | formula |
result[ ].comment | Text | Comment associated to the name |
Available properties depend on the type of the named element (named cell, named range, or named formula).