Maximum 31 characters allowed in sheet title code example
Example: Maximum 31 characters allowed in sheet title
if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) {
throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.');
}