Version

ApplyArrayFormula Method

Applies a array formula to the region of cells.
Syntax
'Declaration
 
Public Sub ApplyArrayFormula( _
   ByVal value As String _
) 
public void ApplyArrayFormula( 
   string value
)

Parameters

value
The array formula to parse and apply to the region.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionvalue is null or empty.
FormulaParseExceptionvalue is not a valid formula.
System.InvalidOperationException The region contains another array formula or data table which extends outside the region.
Remarks

value is parsed based on the CellReferenceMode of the Workbook to which the region belongs. If the region's Worksheet has been removed from its parent collection, the A1 CellReferenceMode will be used to parse the formula.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also