//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Use sheet index to get worksheet. IWorksheet worksheet = workbook.Worksheets[0]; //Use sheet name to get worksheet. IWorksheet worksheet1 = workbook.Worksheets["Sheet1"];
' Create a new Workbook Dim workbook As New Workbook 'Use sheet index to get worksheet. Dim worksheet As IWorksheet = workbook.Worksheets(0) 'Use sheet name to get worksheet. Dim worksheet1 As IWorksheet = workbook.Worksheets("Sheet1") ' save to an excel file workbook.Save("AccessWorksheet.xlsx")