You can lock a file to make it read-only and prevent it from being accidentally deleted.
Lock or unlock a workbook to make it read-only
: If your workbook is shared, anyone who has Write privileges can clear the read-only status. For stronger protection, require a password to save changes.
-
On the File menu, click Info.
-
Click on Protect Workbook and select the Always Open Read-Only.