The VP Name command returns a new range object referencing a named range.
In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.
The rangeName parameter specifies an existing named cell range.
In the optional scope parameter, you can designate a specific spreadsheet where rangeName is defined. If omitted, the current spreadsheet is used by default. You can explicitly select the current spreadsheet or the entire workbook with the following constants:
Constant |
Type |
Value |
Comment |
vk current sheet |
Longint |
-1 |
Designates current sheet of the 4D View Pro area (default) |
vk workbook |
Longint |
-2 |
Designates the entire workbook of the 4D View Pro area. |
You want to give a value to the "Total" named range.