'Declaration Public Overloads Sub ApplyTo( _ ByVal region As WorksheetRegion _ )
public void ApplyTo( WorksheetRegion region )
Exception | Description |
---|---|
System.ArgumentNullException | region is null. |
System.InvalidOperationException | region contains an array formula or data table which extends outside the region. |
This method, or one of the other ApplyTo overrides must be used to set the value of a cell to a formula.
After this method returns, the WorksheetCell.Formula of all cells in the specified region will return the formula.
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