Version

Add(WorksheetCell) Method

Adds a cell to the collection of references.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal cell As WorksheetCell _
) 
public void Add( 
   WorksheetCell cell
)

Parameters

cell
The cell to add to the collection.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when the cell is null.
System.ArgumentExceptionOccurs when the cell is from a Worksheet other than the references collection.
Remarks

The cell added to the collection must be from the same Worksheet as the collection.

If the cell is already contained in the collection, or there is a region in the collection which contains the cell, this call will have no effect on the collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, 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