$objPHPExcel->getActiveSheet()->getProtection()->setSheet(true); 转载于:https://www.cnblogs.com/simadongyang/p/9060928.html