Count Property
Count
Returns the number of IWorksheet objects in the collection (read-only).
Declaration
ReadOnly Property Count As Integer
Examples
IWorksheets worksheets = workbook.Worksheets;
IWorksheet sheet2 = worksheets.Add();
int count = worksheets.Count; // count is 2