• Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Theme Selection
Mode Selection
*Translated by Google Translator.

Example of Worksheet Protection in ASP.NET MVC Excel (XlsIO) Library

This sample demonstrates how to Lock and Unlock spreadsheets using Excel (XlsIO) Library.

Click the "Lock Worksheet" button to view the locked Excel document and "Unlock Worksheet" to view the unlocked Excel document. Please note that the Microsoft Excel viewer or Microsoft Excel is required to view the Excel document.

Save As :  

Microsoft Excel offers a special way for protecting specific data and certain worksheets with or without a password. This prevents anyone from changing, moving, or deleting important data.

Excel allows you to edit or lock a range of cells in a protected worksheet by using the Protection tab in the Format Cells dialog. By default, all cells are locked, but they are not hidden when the worksheet is protected. Worksheets can be protected by choosing the Tools - Protection - Protect Sheet option in Excel.