Creates a new Chartsheet at a specified position in the workbook.

 public Chartsheet CreateChartsheet(ChartType type, System.String name, int position)
Public Function CreateChartsheet(ByVal type As ChartType, ByVal name As String, ByVal position As Integer) As Chartsheet

The type of chart to create. Specify both a chart type and sub-type, for example, ChartType.Bar.Clustered.

Name for the new chartsheet.

The 0-based position at which to insert the chartsheet. If position is greater than Worksheets.Count, an exception will be thrown.

A Chartsheet object representing the chartsheet created.

ChartSheet cs =
     sheets.CreateWorksheet(ChartType.Bar.Clustered, "NewSheet", 0);
Dim cs As ChartSheet = _
     sheets.CreateWorksheet(ChartType.Bar.Clustered, "NewSheet", 0)