1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir<helpdocument version="1.0">
3cdf0e10cSrcweir
4*ce44d6c1SAndrew Rist<!--***********************************************************
5*ce44d6c1SAndrew Rist *
6*ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
7*ce44d6c1SAndrew Rist * or more contributor license agreements.  See the NOTICE file
8*ce44d6c1SAndrew Rist * distributed with this work for additional information
9*ce44d6c1SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
10*ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the
11*ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance
12*ce44d6c1SAndrew Rist * with the License.  You may obtain a copy of the License at
13*ce44d6c1SAndrew Rist *
14*ce44d6c1SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
15*ce44d6c1SAndrew Rist *
16*ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing,
17*ce44d6c1SAndrew Rist * software distributed under the License is distributed on an
18*ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*ce44d6c1SAndrew Rist * KIND, either express or implied.  See the License for the
20*ce44d6c1SAndrew Rist * specific language governing permissions and limitations
21*ce44d6c1SAndrew Rist * under the License.
22*ce44d6c1SAndrew Rist *
23*ce44d6c1SAndrew Rist ***********************************************************-->
24*ce44d6c1SAndrew Rist
25*ce44d6c1SAndrew Rist
26cdf0e10cSrcweir
27cdf0e10cSrcweir
28cdf0e10cSrcweir<meta>
29cdf0e10cSrcweir      <topic id="textscalcguidecell_protectxml" indexer="include" status="PUBLISH">
30cdf0e10cSrcweir         <title xml-lang="en-US" id="tit">Protecting Cells from Changes</title>
31cdf0e10cSrcweir         <filename>/text/scalc/guide/cell_protect.xhp</filename>
32cdf0e10cSrcweir      </topic>
33cdf0e10cSrcweir   </meta>
34cdf0e10cSrcweir   <body>
35cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3146119"><bookmark_value>protecting;cells and sheets</bookmark_value>
36cdf0e10cSrcweir      <bookmark_value>cells; protecting</bookmark_value>
37cdf0e10cSrcweir      <bookmark_value>cell protection; enabling</bookmark_value>
38cdf0e10cSrcweir      <bookmark_value>sheets; protecting</bookmark_value>
39cdf0e10cSrcweir      <bookmark_value>documents; protecting</bookmark_value>
40cdf0e10cSrcweir      <bookmark_value>cells; hiding for printing</bookmark_value>
41cdf0e10cSrcweir      <bookmark_value>changing; sheet protection</bookmark_value>
42cdf0e10cSrcweir      <bookmark_value>hiding;formulas</bookmark_value>
43cdf0e10cSrcweir      <bookmark_value>formulas;hiding</bookmark_value>
44cdf0e10cSrcweir</bookmark><comment>MW transferred "modifying;..." and "changing;..." into one index entry</comment>
45cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3146119" role="heading" level="1" l10n="U" oldref="5"><variable id="cell_protect"><link href="text/scalc/guide/cell_protect.xhp" name="Protecting Cells from Changes">Protecting Cells from Changes</link>
46cdf0e10cSrcweir</variable></paragraph>
47cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3153368" role="paragraph" l10n="U" oldref="17">In <item type="productname">%PRODUCTNAME</item> Calc you can protect sheets and the document as a whole. You can choose whether the cells are protected against accidental changes, whether the formulas can be viewed from within Calc, whether the cells are visible or whether the cells can be printed.</paragraph>
48cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3145261" role="paragraph" l10n="U" oldref="18">Protection can be provided by means of a password, but it does not have to be. If you have assigned a password, protection can only be removed once the correct password has been entered.</paragraph>
49cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3148576" role="paragraph" l10n="U" oldref="19">Note that the cell protection for cells with the <emph>Protected</emph> attribute is only effective when you protect the whole sheet. In the default condition, every cell has the <emph>Protected</emph> attribute. Therefore you must remove the attribute selectively for those cells where the user may make changes. You then protect the whole sheet and save the document.</paragraph>
50cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id5974303" role="warning" l10n="NEW">These protection features are just switches to prevent accidental action. The features are not intended to provide any secure protection. For example, by exporting a sheet to another file format, a user may be able to surpass the protection features. There is only one secure protection: the password that you can apply when saving an OpenDocument file. A file that has been saved with a password can be opened only with the same password.</paragraph>
51cdf0e10cSrcweir      <list type="ordered">
52cdf0e10cSrcweir         <listitem>
53cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN1066B" role="listitem" l10n="NEW">Select the cells that you want to specify the cell protection options for.</paragraph>
54cdf0e10cSrcweir         </listitem>
55cdf0e10cSrcweir         <listitem>
56cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3149019" role="listitem" l10n="U" oldref="7">Choose <item type="menuitem">Format - Cells</item> and click the <emph>Cell Protection</emph> tab.</paragraph>
57cdf0e10cSrcweir         </listitem>
58cdf0e10cSrcweir         <listitem>
59cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3152985" role="listitem" l10n="U" oldref="9">Select the protection options that you want. All options will be applied only after you protect the sheet from the Tools menu - see below.</paragraph>
60cdf0e10cSrcweir                        <paragraph xml-lang="en-US" id="par_id31529866655" role="listitem" l10n="NEW">Uncheck <emph>Protected</emph> to allow the user to change the currently selected cells.</paragraph>
61cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3152898" role="listitem" l10n="U" oldref="10">Select <emph>Protected</emph> to prevent changes to the contents and the format of a cell. </paragraph>
62cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN1069A" role="listitem" l10n="NEW">Select <emph>Hide formula</emph> to hide and to protect formulas from changes.</paragraph>
63cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN106A1" role="listitem" l10n="NEW">Select <emph>Hide when printing</emph> to hide protected cells in the printed document. The cells are not hidden onscreen.</paragraph>
64cdf0e10cSrcweir         </listitem>
65cdf0e10cSrcweir         <listitem>
66cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3152872" role="listitem" l10n="U" oldref="11">Click <emph>OK</emph>.</paragraph>
67cdf0e10cSrcweir         </listitem>
68cdf0e10cSrcweir         <listitem>
69cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3145362" role="listitem" l10n="U" oldref="12">Apply the protection options.</paragraph>
70cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN106C0" role="listitem" l10n="NEW">To protect the cells from being changed / viewed / printed according to your settings in the <emph>Format - Cells</emph> dialog, choose <item type="menuitem">Tools - Protect Document - Sheet</item>.</paragraph>
71cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN106C7" role="listitem" l10n="CHG">To protect the structure of the document, for example the count, <link href="text/scalc/guide/rename_table.xhp">names</link>, and order of the sheets, from being changed, choose <item type="menuitem">Tools - Protect Document - Document</item>.</paragraph>
72cdf0e10cSrcweir         </listitem>
73cdf0e10cSrcweir         <listitem>
74cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN106CF" role="listitem" l10n="CHG">(Optional) Enter a password.</paragraph>
75cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_idN106D2" role="warning" l10n="NEW">If you forget your password, you cannot deactivate the protection. If you only want to protect cells from accidental changes, set the sheet protection, but do not enter a password.</paragraph>
76cdf0e10cSrcweir         </listitem>
77cdf0e10cSrcweir         <listitem>
78cdf0e10cSrcweir            <paragraph xml-lang="en-US" id="par_id3153810" role="listitem" l10n="U" oldref="13">Click <emph>OK</emph>. </paragraph>
79cdf0e10cSrcweir         </listitem>
80cdf0e10cSrcweir      </list>
81cdf0e10cSrcweir      <section id="relatedtopics">
82cdf0e10cSrcweir         <embed href="text/scalc/guide/cell_unprotect.xhp#cell_unprotect"/>
83cdf0e10cSrcweir         <embed href="text/shared/guide/protection.xhp#protection"/>
84cdf0e10cSrcweir         <paragraph xml-lang="en-US" id="par_idN10B8C" role="paragraph" l10n="NEW">
85cdf0e10cSrcweir            <embedvar href="text/shared/guide/digital_signatures.xhp#digital_signatures"/>
86cdf0e10cSrcweir         </paragraph>
87cdf0e10cSrcweir      </section>
88cdf0e10cSrcweir   </body>
89cdf0e10cSrcweir</helpdocument>