在phpexcel我能够锁定细胞
$objPHPExcel->getActiveSheet()->protectCells('A1:D1', 'php');
$objPHPExcel->getActiveSheet()->getProtection()->setSheet(true);
Run Code Online (Sandbox Code Playgroud)
如果我双击A1到D1之间的任何单元格,它将要求输入密码.
但如果我双击任何其他单元格(例如)A2,它说
"The cell or chart that you are trying to change is protected and therefore
read-only".
Run Code Online (Sandbox Code Playgroud)
它锁定整个工作表,是否可以仅锁定特定单元格并使其他单元格可编辑?