Comments (2)
Here is my PHP code
// set security
$protection = $spreadsheet->getActiveSheet()->getProtection();
$protection->setPassword($mslReportsPassword);
$protection->setSheet(true);
$protection->setInsertRows(true);
$protection->setFormatCells(true);
$protection->setObjects(true);
$protection->setAutoFilter(false);
$protection->setSort(true);
from phpspreadsheet.
Enabling sorting on a protected sheet in Excel seems more complicated than it ought to be. See https://www.extendoffice.com/documents/excel/4673-excel-sort-filter-protected-sheet.html. This means that you have to explicitly protect ranges that you want to be able to sort/filter on a protected sheet. PhpSpreadsheet supports protected ranges, except that it assumes they will always have a password (and does not support the name attribute, which I'm not sure is significant). I will treat this issue as a feature request, and start looking into that.
from phpspreadsheet.
Related Issues (20)
- Sheet cloning is time consuming HOT 1
- Prepending zero on negative percentage numbers -10<n<-9
- setCellValueByColumnAndRow deprecated?? HOT 1
- Rank formula not working HOT 1
- [Bug] Removing column when next column value is null shifts cell value from deleted column into the next column HOT 6
- Calculation Error "=COUNTIF(F$12:F$203,"1")" HOT 1
- Xls::loadSpreadsheetFromFile: trim(): Passing null to parameter #1 ($string) of type string is deprecated HOT 11
- converting a .xlsx file to .pdf not retain the specified print area HOT 1
- setReadDataOnly function is deprecated or missing HOT 4
- Including WordPress? HOT 4
- If the content of the csv file contains Chinese characters enclosed in double quotes, the data will not be output correctly HOT 4
- Need help regarding download of excel file. HOT 1
- [ERROR] Class "Rector\Core\Rector\AbstractRector" not found HOT 2
- Make voku packages optional HOT 6
- ver 1.29 ) Csv auto_detect_line_endings HOT 4
- Unable to save with setFormatCode in ODS, and getFormatCode from existing documents HOT 4
- mime_content_type() has been removed since PHP ver. 8 HOT 1
- Some methods removed in v2.0 but not mentioned in CHANGELOG file HOT 1
- syntax error in xls.php file HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpspreadsheet.