Deletes a worksheet form an Excel workbook.
The workbook from which to delete the worksheet
The code name of the sheet to delete.
The name of the sheet to delete.
Sets whether to search the worksheet by its Name or by its CodeName.