original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Set active sheet index by name
  
  @param  string $pValue Sheet title
  @return PHPExcel_Worksheet
  @throws PHPExcel_Exception
docstring_tokens: Set active sheet index by name