The VP Get formulas command retrieves the formulas from a designated rangeObj.
In rangeObj, pass a range whose formulas you want to retrieve. If rangeObj designates multiple ranges, the formula of the first range is returned. If rangeObj does not contain any formulas, the command returns an empty string.
The returned collection is two-dimensional:
- The first-level collection contains subcollections of formulas. Each subcollection reprensents a row.
- Each subcollection defines cell values for the row. Values are text elements containing the cell formulas.
You want to retrieve the formulas in the Sum and Average columns from this document:

You can use this code:
$formulas:=VP Get formulas(VP Cells("ViewProArea";5;1;2;3))