previousWorksheet::setFirstSheet (Previous) (Next) Worksheet::setColumnnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Worksheet::protect

Worksheet::protect – Set the worksheet protection flag

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

void Worksheet::protect ( string $password )

Description

Set the worksheet protection flag to prevent accidental modification and to hide formulas if the locked and hidden format properties have been set.

Parameter

  • string $password - The password to use for protecting the sheet.

Note

This function can not be called statically.

Example

Using protect()

<?php

?>
previousWorksheet::setFirstSheet (Previous) (Next) Worksheet::setColumnnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.