4D v19VP ADD RANGE NAME |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19
VP ADD RANGE NAME
|
VP ADD RANGE NAME ( rangeObj ; name {; options} ) | ||||||||
Parameter | Type | Description | ||||||
rangeObj | Object |
![]() |
Range object | |||||
name | Text |
![]() |
Name for the range | |||||
options | Object |
![]() |
Options for the named range | |||||
The VP ADD RANGE NAME command creates or modifies a named range in the open document.
Note: Named ranges created by this command are saved with the document.
In rangeObj, pass the range that you want to name and in name, pass the new name for the range. If the name is already used within the same scope, the new named range replaces the existing one. Note that you can use the same name for different scopes (see below).
You can pass an object with additional properties for the named range in options. The following properties are supported:
Property | Type | Description | |||||||||
scope | Number | Scope for the range. You can pass the sheet index (counting begins at 0) or use the following constants:
Note: The scope determines whether a range name is local to a given worksheet (scope=sheet index or vk current sheet), or global across the entire workbook (scope=vk workbook). | |||||||||
comment | Text | Comment associated to named range |
Notes:
You want to create a named range for a cell range:
$range:=VP Cell("ViewProArea";2;10)
VP ADD RANGE NAME($range;"Total1")
VP ADD FORMULA NAME
VP Get formula by name
VP Get names
VP Name
Product: 4D
Theme: 4D View Pro Language
Number:
9555
Created: 4D v17 R4
4D View Pro Reference ( 4D v19)