summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/06060100.xhp
blob: 5ed52eec5659d60d764a6c917ec831dbbbe5958b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->
<helpdocument version="1.0">
<meta>
<topic id="textscalc0106060100xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Protecting Sheet</title>
<filename>/text/scalc/01/06060100.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="hid/modules/scalc/ui/protectsheetdlg/ProtectSheetDialog" id="bm_id3148919" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/modules/scalc/ui/protectsheetdlg/@@nowidget@@" id="bm_id3148919" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/.uno:Protect" id="bm_id3156326" localize="false"/>
<bookmark xml-lang="en-US" branch="index" id="bm_id141619439455954">
<bookmark_value>insert rows;protected sheet</bookmark_value>
<bookmark_value>insert columns;protected sheet</bookmark_value>
<bookmark_value>delete columns;protected sheet</bookmark_value>
<bookmark_value>delete rows;protected sheet</bookmark_value>
<bookmark_value>protected sheet;insert columns</bookmark_value>
<bookmark_value>protected sheet;insert rows</bookmark_value>
<bookmark_value>protected sheet;delete rows</bookmark_value>
<bookmark_value>protected sheet;delete columns</bookmark_value>
<bookmark_value>protect;sheet</bookmark_value>
<bookmark_value>selection;in protected cells</bookmark_value>
</bookmark>
<h1 id="hd_id3153087"><variable id="ProtectingSheeth1"><link href="text/scalc/01/06060100.xhp" name="Protecting Sheet">Protecting Sheet</link></variable></h1>
<paragraph role="paragraph" id="par_id3148664" xml-lang="en-US"><variable id="tabelletext"><ahelp hid=".uno:Protect">Protects the cells in the current sheet from being modified.</ahelp></variable></paragraph>
<paragraph role="paragraph" id="par_id701619429750616">Choose <emph>Tools - Protect Sheet</emph> to open the <emph>Protect Sheet</emph> dialog in which you then specify sheet protection with or without a password, and select the elements of the sheet to protect.</paragraph>
<section id="howtoget">
  <embed href="text/scalc/00/00000406.xhp#protect_sheet"/>
  <embed href="text/scalc/00/00000402.xhp#cellprotection"/>
</section>
<warning id="par_id3149664">To protect cells from further editing, the <emph>Protected</emph> check box must be checked on the <link href="text/scalc/01/05020600.xhp" name="Format - Cells - Cell Protection"><emph>Format - Cells - Cell Protection</emph></link> tab page or on the <emph>Format Cells</emph> context menu.</warning>

<h2 id="hd_id901619431276995">Protect this sheet and contents of the protected cells</h2>
<paragraph role="paragraph" id="par_id381619431285815">Mark this checkbox to activate protection of sheet and cell contents.</paragraph>
<h2 id="hd_id31619431291108">Password / Confirm</h2>
<paragraph role="paragraph" id="par_id851619431300487">Allows you to enter a password to protect the sheet from unauthorized changes. Confirm the password entered in the first box.</paragraph>
<h2 id="hd_id711619431316966">Allow users of this sheet to</h2>
<paragraph role="paragraph" id="par_id41619431361278">Select the elements to protect from user actions:</paragraph>
<list type="unordered">
    <listitem>
        <paragraph id="par_id661619430257262"  role="listitem"><emph>Select protected cells</emph>: mark this checkbox to allow you to select protected cells. When the checkbox is unmarked, you cannot select protected cells, the cursor cannot enter in a protected range.</paragraph>
    </listitem>
    <listitem>
        <paragraph id="par_id921619430295947"  role="listitem"><emph>Select unprotected cells</emph>: mark this checkbox to allow user to select unprotected cells. When the checkbox is unmarked, user cannot select unprotected cells, the cursor cannot enter in a unprotected cell or range.</paragraph>
    </listitem>
    <listitem>
        <paragraph id="par_id101619430333784"  role="listitem"><emph>Insert columns</emph>: Allow column insertions even when the sheet is protected. Note that when column insertions is enabled, you can insert columns even when the range to insert the new columns into contains protected cells which will get shifted after the insertion. Cells of the newly inserted columns inherit the Protection property of the range it belongs: when the new cell is inside a protected range, the cell is protected, and when it is in an unprotected range, the cell is unprotected.</paragraph>
    </listitem>
    <listitem>
        <paragraph id="par_id891619430338809"  role="listitem"><emph>Insert rows</emph>: Allow row insertions even when the sheet is protected. Note that when row insertions is enabled, you can insert rows even when the range to insert the new rows into contains protected cells which will get shifted after the insertion. Cells of the newly inserted rows inherit the Protection property of the range it belongs: when the new cell is inside a protected range it is protected, and when it is in an unprotected range, the cell is unprotected.</paragraph>
    </listitem>
    <listitem>
        <paragraph id="par_id311619430374686"  role="listitem"><emph>Delete columns</emph>: Allow column deletions. Note that column deletions are only allowed on unprotected cells.
            </paragraph>
    </listitem>
    <listitem>
        <paragraph id="par_id561619430376854"  role="listitem"><emph>Delete rows</emph>: Allow row deletions. Note that row deletions are only allowed on unprotected cells.
            </paragraph>
    </listitem>
</list>
<paragraph role="paragraph" id="par_id3154490">Unprotected cells or cell ranges can be set up on a protected sheet by using the <emph>Tools - Protect Sheet</emph> and <emph>Format - Cells - Cell Protection</emph> menus: </paragraph>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id3149123" xml-lang="en-US">Select the cells that will be unprotected</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id3150329" xml-lang="en-US">Select <emph>Format - Cells - Cell Protection</emph>. Unmark the <emph>Protected</emph> box and click <emph>OK</emph>.</paragraph>
</listitem>
<listitem>
    <paragraph role="paragraph" id="par_id3156384" xml-lang="en-US">On the <emph>Tools - Protect Sheet</emph> menu, activate protection for the sheet. Effective immediately, only the cell range you selected in step 1 can be edited.</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id3149566" xml-lang="en-US">To later change an unprotected area to a protected area:</paragraph>
    <list type="ordered">
        <listitem>
            <paragraph id="par_id101619439013221"  role="listitem">Select the range of cells that will be protected.</paragraph>
        </listitem>
        <listitem>
            <paragraph id="par_id601619439028536"  role="listitem">On the <menuitem>Format - Cells - Cell Protection</menuitem> tab page, check the <emph>Protected</emph> box. </paragraph>
        </listitem>
        <listitem>
            <paragraph id="par_id641619439061892"  role="listitem">Choose the <menuitem>Tools - Protect Sheet</menuitem> menu. The previously editable range is now protected.</paragraph>
        </listitem>
    </list>
<paragraph role="paragraph" id="par_id3153964" xml-lang="en-US">Sheet protection also affects the context menu of the sheet tabs at the bottom of the screen. The <emph>Delete</emph> and <emph>Rename</emph> commands cannot be selected.</paragraph>
<paragraph role="paragraph" id="par_id3150301" xml-lang="en-US">If a sheet is protected, you will not be able to modify or delete any Cell Styles.</paragraph>
<paragraph role="paragraph" id="par_id3154656" xml-lang="en-US">A protected sheet or cell range can no longer be modified until this protection is disabled, with the exceptions of the settings for columns and row of the <menuitem>Tools - Protect Sheet</menuitem> dialog. To disable the protection, choose the <menuitem>Tools - Protect Sheet</menuitem> command. If no password was set, the sheet protection is immediately disabled. If the sheet was password protected, the <emph>Remove Protection</emph> dialog opens, where you must enter the password.</paragraph>
<paragraph role="paragraph" id="par_id3149815" xml-lang="en-US">Once saved, protected sheets can only be saved again by using the <emph>File - Save As</emph> command.</paragraph>
<note id="par_id3148700">Complete protection of your work can be achieved by combining the options <emph>Tools - Protect Sheet</emph> and <emph>Tools - Protect Spreadsheet Structure</emph>, including password protection. To prohibit opening the document altogether, in the <emph>Save</emph> dialog mark the <emph>Save with password</emph> box before you click the <emph>Save</emph> button.</note>
</body>
</helpdocument>