//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets.Add(); //Activate new created worksheet. worksheet.Activate();
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets.Add() 'Activate new created worksheet. worksheet.Activate() ' save to an excel file workbook.Save("ActivateWorksheet.xlsx")