public function setActiveSheetIndexByName($pValue = '')
    {
        if (($worksheet = $this->getSheetByName($pValue)) instanceof PHPExcel_Worksheet) {
            $this->setActiveSheetIndex($this->getIndex($worksheet));
            return $worksheet;
        }

        throw new PHPExcel_Exception('Workbook does not contain sheet:' . $pValue);
    }
public function setActiveSheetIndexByName($pValue = '')
    {
        if (($worksheet = $this->getSheetByName($pValue)) instanceof PHPExcel_Worksheet) {
            $this->setActiveSheetIndex($this->getIndex($worksheet));
            return $worksheet;
        }

        throw new PHPExcel_Exception('Workbook does not contain sheet:' . $pValue);
    }
public function setActiveSheetIndexByName ( $ pValue = '' ) { if ( ( $ worksheet = $ this -> getSheetByName ( $ pValue ) ) instanceof PHPExcel_Worksheet ) { $ this -> setActiveSheetIndex ( $ this -> getIndex ( $ worksheet ) ) ; return $ worksheet ; } throw new PHPExcel_Exception ( 'Workbook does not contain sheet:' . $ pValue ) ; }
Set active sheet index by name

@param  string $pValue Sheet title
@return PHPExcel_Worksheet
@throws PHPExcel_Exception
Set active sheet index by name