You are here

public function PHPExcel::createSheet in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel.php \PHPExcel::createSheet()

Create sheet and add it to this workbook

Parameters

int|null $iSheetIndex Index where sheet should go (0,1,..., or null for last):

Return value

PHPExcel_Worksheet

Throws

PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel.php, line 479

Class

PHPExcel
PHPExcel

Code

public function createSheet($iSheetIndex = NULL) {
  $newSheet = new PHPExcel_Worksheet($this);
  $this
    ->addSheet($newSheet, $iSheetIndex);
  return $newSheet;
}