| GrapeCity.Excel Namespace > ExcelWorksheetCollection Class : Add Method | 
'Declaration Public Sub Add( _ ByVal worksheet As IExcelWorksheet _ )
'Usage Dim instance As ExcelWorksheetCollection Dim worksheet As IExcelWorksheet instance.Add(worksheet)
public void Add( IExcelWorksheet worksheet )
| Exception | Description | 
|---|---|
| System.ArgumentNullException | worksheet is a null reference (Nothing in Visual Basic) | 
Target Platforms: Windows Server 2012, Windows RT