New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] How to add protection to a range of cells #1349
Comments
Hi @GreenWhiteDev I checked out the underlying dependency with a search over at: You'll see in the results: That's probably enough to get you going i guess.
Edit: adding this ref:
Three parameters to play with on that method ! Let me know how you get on? |
Finally, i found the right way to do it.. $objPHPExcel = new PHPExcel; //PROTECT THE CELL RANGE // UNPROTECT THE CELL RANGE // PROTECT THE WORKSHEET SHEET This is working perfectly! In Laravel I use: // PROTECT with your passwword // UNPROTECT the cell range // PROTECT worksheet sheet |
@jorgeald77 Wow! That worked so cool.. I paused the project for a while. I just started a few days back. I wasn't able to implement the security for the cell range then. I tried your solution and it worked so cool. I appreciate this so much. Thanks everyone for contributing.. |
Package version, Laravel version
Latest version, Laravel 5.4
I don't know if it's a bug, me not getting it right, or there's something I'm yet to do.
I was able to use the basic and advanced methods found in the maatwebsite for excel documentation.
The methods I used were
$sheet->protect() , and it's advanced method.
This methods were able to protect the whole sheet, but I need to protect only a range of cells.
I saw a worksheet method:
$sheet->protectCells(A1); but this ain't working for me. Please help with a method I could use in achieving this. Thanks..
The text was updated successfully, but these errors were encountered: