A
A
Anton Shelestov2016-02-10 18:04:19
excel
Anton Shelestov, 2016-02-10 18:04:19

How to protect some cells in excel file using PHPExcel?

Hello everyone, people, can you tell me how to protect some cells in the generated excel document so that they cannot be edited?
I'm trying to do this:

$sheet->protectCells('A' . $sheet->getHighestRow(), $password);

( It blocks every line for me)
This code doesn't work .
$sheet->getProtection()->setSheet(true);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2016-07-06
@les-anatoliy

Greetings.
I have a similar situation, are you our solution?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question