The VP SET FORMULAS command assigns a collection of formulas starting at the specified cell range.
In rangeObj, pass a range of the cell (created with VP Cell) whose formula you want to specify. If rangeObj includes multiple ranges, only the first range is used.
The formulasCol is a two-dimensional collection:
- The first-level collection contains subcollections of formulas. Each subcollection defines a row.
- Each subcollection defines cell values for the row. Values must be text elements containing the formulas to assign to the cells.
Note: If a 4D method is used, it must be allowed with the SET ALLOWED METHODS command (see Project method references).
Note: You can remove the formulas in rangeObj by replacing them with an empty string ("").
This code:
will set the formulas in the designated range:
myMethod:
$0:=$1*3.33