Код: Выделить всё
$sheet->getProtection()->setSheet(true)->setDeleteRows(true);
< /code>
Но не смог установить защиту для отдельной ячейки. Я попробовал следующие коды.$sheet->protectCellsByColumnAndRow(0, 1, 100, 100, 'asdf');
< /code>
$sheet->protectCells('A1','password',false);
Подробнее здесь: https://stackoverflow.com/questions/551 ... preadsheet