How to Prevent XLSB to XLSX Conversion and Protect Excel Data
Question details
The user wants to prevent their online-stored XLSB (Excel Binary Workbook) file from being converted to the XLSX format to avoid exposing confidential data and sheet-protection information.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Securing confidential data stored online by ensuring that internal sheet-protection mechanisms cannot be bypassed via file format conversion.
- Observed behavior
- Excel does not natively restrict users from using the 'Save As' function to convert an XLSB file to an XML-based XLSX file, which can expose structural protection details.
Understand that Excel does not have a native toggle to lock file formats. Securing the file requires applying workbook-level encryption rather than just restricting the 'Save As' format.
Encrypt the Workbook with a Password
Since Excel cannot block format conversion directly, encrypting the entire workbook is the most reliable way to protect confidential data and prevent unauthorized users from viewing or altering the file structure.
By encrypting the file, anyone who attempts to open the workbook—even if they managed to change the file extension—will be prompted for a password. This renders the XML structure inaccessible to unauthorized parties.
Open your XLSB file in Microsoft Excel. Click on the 'File' tab in the top-left corner of the ribbon, and select 'Info' from the left-hand menu.
Click the 'Protect Workbook' button to reveal a dropdown menu of security options.
Select 'Encrypt with Password' from the dropdown list. A dialog box will appear asking you to type a password.
Type a strong password and click 'OK'. You will be prompted to re-enter the password to confirm it. After confirming, save the workbook to apply the encryption.

Use VBA to Disable the 'Save As' Feature
For customized protection, you can use a Visual Basic for Applications (VBA) macro to intercept and cancel the 'Save As' command, preventing users from saving the file as an XLSX.
Easily Encrypt and Protect Workbooks in WPS Spreadsheet
WPS Office provides robust document encryption features, allowing you to easily password-protect your binary workbooks and prevent unauthorized access or format tampering.
- 1. Open the XLSB File: Launch WPS Spreadsheet and open your confidential XLSB file.
- 2. Navigate to Document Encryption: Click on the 'Menu' button in the top left corner, hover over 'Document Encryption', and select 'Encryption'.
- 3. Set Document Passwords: In the Encryption dialog, enter a password in the 'Document Password' field to prevent unauthorized opening of the file.
- 4. Apply and Save: Click 'OK' to confirm the password, then save the document to finalize your security settings.

Frequently Asked Questions
Why does the XLSX format expose sheet protection information?
XLSX files are essentially compressed ZIP archives containing a collection of XML files. A user can rename the .xlsx file extension to .zip, extract the contents, and open the internal XML files in a text editor to locate and delete the sheet protection tags, thereby bypassing the structural security.
Does saving a file as XLSB encrypt the formulas automatically?
No. The XLSB format stores data in a binary format rather than XML, which makes it faster to open and harder to casually inspect, but it is not securely encrypted. A password must still be applied to protect confidential data.
Can I prevent someone from copying data out of an XLSB file?
While you can protect sheets and lock cells to prevent editing, preventing users from copying data entirely requires strict Information Rights Management (IRM) tools or advanced VBA programming, as standard Excel sheet protection does not fully disable data copying.
Will VBA macros run if an XLSB file is successfully converted to XLSX?
No. The XLSX file format is strictly macro-free. If your workbook is saved as an XLSX, all VBA code, including any macro-based security scripts, will be permanently removed from the new file.




