Documentation (jamescostian) GH-234 - Fixed some malformed Markdown

This commit is contained in:
Mark Baker 2013-11-17 19:52:35 +00:00
parent f3755a0965
commit aa660150ae
1 changed files with 6 additions and 1 deletions

View File

@ -731,8 +731,13 @@ An example on setting cell security:
$objPHPExcel->getActiveSheet()->getStyle('B1')
->getProtection()
->setLocked(PHPExcel_Style_Protection::PROTECTION_UNPROTECTED);
```
__Make sure you enable worksheet protection if you need any of the worksheet protection features!__ This can be done using the following code: $objPHPExcel->getActiveSheet()->getProtection()->setSheet(true);
__Make sure you enable worksheet protection if you need any of the worksheet protection features!__ This can be done using the following code:
```php
$objPHPExcel->getActiveSheet()->getProtection()->setSheet(true);
```
### Setting data validation on a cell