To protect a sheet in LibreOffice Calc, open the sheet and choose Tools > Protect Sheet, then enter and confirm a password if you want to require one before protection can be turned off. To let people edit particular cells, mark those cells as unprotected before you protect the sheet. Sheet protection helps prevent accidental or casual edits; it does not encrypt the spreadsheet or keep its contents secret.
What sheet protection does in Calc
Calc separates a cell’s protection setting from the act of protecting its sheet. Cells normally have a protected status, but that status does not restrict editing until sheet protection is switched on. Once the sheet is protected, protected cells cannot be edited normally, while cells you have explicitly marked as unprotected remain available for input.
This makes protection useful for templates and shared working files. For example, a household budget could protect the formula cells that calculate totals while leaving the monthly expense-entry cells open. A form could protect its labels and instructions but leave blank fields available for responses.
Protection is a control within the spreadsheet application, not a boundary against someone determined to access or alter the file. It can reduce accidental changes and discourage casual editing, but it should not be treated as encryption, access control, or a secure way to conceal confidential information.
How to protect a sheet
- Open the spreadsheet in LibreOffice Calc and select the sheet tab you want to protect.
- Choose Tools > Protect Sheet.
- If prompted, enter a password and enter it again to confirm. A password is optional in some workflows, but without one protection may be easy to switch off.
- Confirm the dialog. The sheet is now protected, and editing protected cells is restricted.
Menu wording or the exact dialog presentation can differ slightly between LibreOffice releases and interface layouts. If the command is not immediately visible, check the Tools menu while Calc is active and confirm that you are working in a spreadsheet rather than another LibreOffice application. Protection applies to the selected sheet, not automatically to every sheet in the file.
To protect several sheets, repeat the process for each one. Before sharing the file, save it, close it, and reopen it if practical. That simple check can reveal whether protection and any allowed input areas behave as intended in the saved document.
Let users edit selected cells
Prepare the editable areas before protecting the sheet. Select the cells that should remain open, then choose Format > Cells and open the Cell Protection tab. Clear the Protected checkbox and confirm. In many Calc versions, Ctrl+1 opens the Format Cells dialog on Windows and Linux; on macOS, use the menu if that shortcut is assigned differently by the system or application.
After changing the cell settings, turn on sheet protection using Tools > Protect Sheet. The unprotected cells should still accept entries, while protected cells should resist ordinary edits. If you protected the sheet first, turn protection off, change the cell settings, and protect it again.
For a practical form, you might leave B2:B10 open for names and quantities while protecting the headings and calculation cells. Test a sample entry in an open cell and try changing a formula cell. This verifies both sides of the setup instead of assuming that the intended cells were selected.
Cell protection is a property of the cells, not a visual indicator that they are editable. Consider adding a clear fill color or instructions such as “Enter values in the shaded cells.” Avoid relying only on color if readers may have difficulty distinguishing it; labels or borders can make the form easier to use.
Protecting formulas and preventing mistakes
A common reason to protect a sheet is to preserve formulas while allowing users to replace input values. Because the cells that contain formulas are protected by default in a typical new sheet, the main task is often to unlock only the intended input cells and then enable sheet protection. If a formula cell was previously marked unprotected, reset its protection status before turning protection on.
Calc’s Cell Protection settings may also include an option to hide formulas. This is different from locking a cell: hiding a formula can prevent it from appearing in the usual formula display while protection is active, but it does not make the underlying workbook a secure store for intellectual property or confidential data. Someone with access to the file may still be able to inspect or copy information through other means.
Protection can also change what people can do beyond typing into cells, and behavior can depend on the operation, file format, and LibreOffice version. Do not assume that a protected sheet will support every workflow, such as rearranging data or applying all formatting. If users need to sort, filter, add rows, or perform other tasks, test those exact actions in a copy before distributing the file.
Unprotecting a sheet and handling a forgotten password
To remove protection when you know the password, select the sheet and choose Tools > Protect Sheet again, or use the corresponding protection command shown in your version. Enter the password if prompted. Once protection is off, you can edit cells normally and adjust their Protected settings through Format > Cells > Cell Protection.
If you have forgotten the password, LibreOffice does not provide a built-in password-recovery button for protected sheets. Look for an earlier unprotected copy, a backup, or a version stored in your organization’s document system. If the file belongs to someone else or to an employer, ask its owner or administrator rather than trying to work around their controls. Keep a separate secure record of passwords for important files.
It is sensible to retain an editable master copy of a template and distribute a protected working copy. Use clear filenames and store the password separately from the file when the protection is important. That approach helps prevent a forgotten password from blocking routine maintenance or future updates.
Sheet protection versus spreadsheet structure and encryption
Protecting a sheet and protecting the spreadsheet’s structure solve different problems. Sheet protection controls changes on an individual sheet. Spreadsheet structure protection is intended to restrict changes to the workbook’s sheet arrangement, such as adding, deleting, renaming, or moving sheets. Look for Tools > Protect Spreadsheet Structure when the goal is to guard the overall sheet structure, and check the command name in your installed version.
Neither kind of protection should be confused with encrypting a file. A protected sheet can generally still be opened and read, so it is unsuitable for hiding private data. If the goal is to require a password to open the document, use LibreOffice’s password-based saving option instead: when saving or using File > Save As, look for Save with password in the save dialog. Available behavior can depend on the chosen file format.
For files that must work in Microsoft Excel or another spreadsheet program, test the saved copy in the destination application. Protection features and their details may not transfer identically between LibreOffice’s OpenDocument formats and Microsoft Office formats. Keep an original copy before converting, and do not assume a password or protection setting has survived an export until you verify it.
Common problems and checks
- I can still edit a cell: Confirm that sheet protection is actually enabled and that the cell was not marked unprotected. Cell protection settings alone do not lock a sheet.
- I cannot type in an input cell: Turn protection off and inspect that cell’s Protected setting. It may not have been unlocked, or the selected range may have missed it.
- The menu item is unavailable: Make sure a Calc sheet is active and that the document is not open in read-only mode. Also check whether the sheet is already protected.
- Protection changed after saving or exporting: Reopen the saved file in the program and format your recipients will use. Cross-format behavior can vary.
- I need to hide sensitive data: Do not rely on sheet protection or a hidden formula. Remove the data from the shared file or use an appropriate file-encryption and access-control process.
When preparing a form, test it as a recipient would: click an intended entry cell, enter a harmless sample value, attempt to alter a protected formula, and try the actions the recipient needs. Then undo the sample edit or close without saving. Testing on a copy avoids accidentally changing the master document.
Frequently Asked Questions
How do I protect a sheet in LibreOffice Calc?
Choose Tools > Protect Sheet on the sheet you want to protect. Add and confirm a password if you want one, then confirm the dialog. Repeat for other sheets; protection is not automatically applied to the whole spreadsheet.
Can I protect formulas but still let someone enter data?
Yes. Select the intended input cells, open Format > Cells > Cell Protection, clear Protected, and confirm. Then enable sheet protection. Leave formula cells protected and test the result.
Does protecting a sheet encrypt the file?
No. Sheet protection restricts ordinary editing of protected cells, but it does not stop someone from opening and reading the spreadsheet. Use password-based file encryption when the requirement is to restrict access to the document itself.
How do I remove sheet protection?
Choose Tools > Protect Sheet again and provide the password if requested. If you do not know the password, check for a backup or contact the file owner; Calc has no built-in recovery button for a forgotten sheet-protection password.
Can I protect all sheets at once?
Sheet protection is applied to individual sheets, so protect each sheet that needs it. If your concern is preventing changes to the workbook’s sheet arrangement, look for the separate spreadsheet-structure protection command.
Related
- Find and Replace Font in Word: Full Steps and Tips
- Find and Replace Highlight Color in Microsoft Word
- Find and Replace in Word: Open and Use the Dialog Box
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Outlook Rules on Windows 11: How to Create and Manage ThemTo create an Outlook rule in Windows 11, open Outlook’s rules settings, choose a condition such as a…
- Excel Power Query: Keep Only Selected ColumnsTo keep only certain columns in Excel Power Query, open the query, select the columns you want, then…
- Share an Outlook Calendar With Your Boss: Steps & TipsYes. In Outlook for Microsoft 365, open Calendar, choose Share Calendar, enter your boss’s email address, select what…
- Excel Insert Row: How to Shift Cells DownTo insert a row in Excel and shift the existing rows down, select the row header where the…
- Create a Distribution List in Outlook on the WebTo create a distribution list in Outlook on the web, open People, choose New contact > New contact…
- Why Can’t I Merge Cells in Google Sheets?You usually can’t merge cells in Google Sheets because the selection is not one editable, continuous range, you…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.