code: public function setActiveSheetIndexByName($pValue)
      {
          if (($worksheet = $this->getSheetByName($pValue)) instanceof Worksheet) {
              $this->setActiveSheetIndex($this->getIndex($worksheet));
  
              return $worksheet;
          }
  
          throw new Exception('Workbook does not contain sheet:' . $pValue);
      }
docs: Set active sheet index by name.
  
  @param string $pValue Sheet title
  
  @throws Exception
  
  @return Worksheet