' Release the objects Set xlWorksheet = Nothing Set xlWorkbook = Nothing Set xlApp = Nothing
' Create a new worksheet Set xlWorksheet = xlWorkbook.Sheets.Add Microsoft Excel 16.0 Object Library Download Vb6
' Set the worksheet name xlWorksheet.Name = "My Worksheet" ' Release the objects Set xlWorksheet = Nothing