How to Convert a Password-Protected Excel File

March 3, 2026 · 6 min read

Converting a password-protected .xls file to a modern format is possible — but the approach depends on what kind of password protection the file has. There are three different types, and each one requires a different step before or during the conversion.

This guide covers all three: workbook open passwords, worksheet protection passwords, and VBA project passwords.

The Three Types of Excel Password Protection

Before you do anything, identify which type of password your file has. They're not the same thing and they don't block the same operations.

Password Type What It Blocks Required to Convert?
Workbook open password Opening the file at all Yes — must enter password
Worksheet protection Editing specific cells or sheets No — file converts with protection intact
VBA project password Viewing/editing the VBA code No for format conversion; depends on tool for VBA fixes

Case 1: Workbook Open Password

If Excel prompts you for a password when you try to open the file, that's a workbook open password. You cannot convert the file without knowing this password — no tool can bypass it without breaking the encryption.

If you know the password

  1. Open the file in Excel and enter the password when prompted.
  2. Go to File → Info → Protect Workbook → Encrypt with Password.
  3. Clear the password field and click OK. This removes the open password.
  4. Save the file (still as .xls at this point).
  5. Now convert: File → Save As. Choose .xlsm if the file has macros, .xlsx if it doesn't.

Important: Never use .xlsx for a file with VBA macros. Excel silently deletes all macros when saving to .xlsx. If you're not sure whether the file has macros, press Alt+F11 and check the Project Explorer — if there are any modules listed, the file has VBA and must go to .xlsm.

If you don't know the password

If the password was set by someone who's no longer available, there are two legitimate paths:

Password-cracking tools exist, but they're not a recommended path for business files. If the original password is genuinely lost and the file is business-critical, the done-for-you route with documented authorization is the right approach.

Have a batch of password-protected files?

LegacyLeaps handles workbook open passwords during batch conversion — enter the password once per file, and the scan and conversion runs automatically. No manual open-save-close loop for every file.

Try the Free Scan

Case 2: Worksheet Protection

Worksheet protection prevents editing specific cells or sheets but doesn't prevent the file from opening or converting. This is the most common type of password protection in business Excel files — budgets, templates, and forms are often locked to prevent accidental edits.

When you convert a worksheet-protected .xls to .xlsm or .xlsx, the sheet protection carries over intact. The converted file will still have the same cells locked and the same edit restrictions.

You don't need to remove sheet protection to convert. The file converts with the protection in place.

If you want to remove sheet protection before converting

  1. Open the file.
  2. Right-click the sheet tab → Unprotect Sheet.
  3. Enter the sheet password if prompted.
  4. Repeat for each protected sheet.
  5. Then convert to .xlsm or .xlsx.

This is only necessary if you want the converted file to be fully editable. For most migrations, leaving sheet protection in place is the right choice — it was there for a reason.

Case 3: VBA Project Password

A VBA project password prevents viewing or editing the VBA code in the editor (Alt+F11). It doesn't prevent the macros from running, and it doesn't prevent the file from opening or converting.

For format conversion — changing .xls to .xlsm — a VBA project password is not a barrier. The file converts with the VBA project intact and still password-protected.

When VBA project passwords matter for migration

VBA project passwords become relevant when:

LegacyLeaps can access the underlying file structure to perform compatibility updates without requiring the VBA editor password. For manual migrations, you need to know the password to make code changes in the VBA editor.

Converting Password-Protected Files in Bulk

Manual conversion of password-protected files is particularly tedious at scale. For each file, you have to open it, enter the password, potentially remove protection, save as new format, validate, close. For 50 files, that's several hours of repetitive work.

For batch migrations involving password-protected files:

Ready to migrate your Excel files?

LegacyLeaps scans your files — password-protected or not — and shows you exactly what needs converting before you spend anything. 100% money-back guarantee.

Download Free Scanner

Quick Reference: Password Types and Actions

Situation What to Do
File asks for password to open Enter password, then convert. Remove open password first if needed.
Specific cells are locked (can't edit) Convert as-is — sheet protection carries over. Remove only if needed.
VBA editor asks for password (Alt+F11) Format conversion works without it. VBA code updates need the password.
Don't know the password Search for unprotected backup. Contact file owner. Use done-for-you service.
Batch of mixed password-protected files Inventory passwords in advance. Use a tool that supports batch password entry.

Frequently Asked Questions

Can you convert a password-protected Excel file without removing the password?

For workbook open passwords, you must enter the correct password before conversion — there's no way around this. For worksheet protection, the file converts without removing the password. For VBA project passwords, format conversion works without them; code updates require the password for manual work.

Does converting an .xls file remove the password?

Not automatically. Password protection typically carries over to the converted file. To remove the password, you need to explicitly clear it in File → Info → Protect Workbook before or after converting.

What happens to password-protected sheets when converting to .xlsm?

Sheet passwords transfer to the .xlsm file intact. The sheets remain protected with the same password. You don't need to unprotect sheets to convert — they carry over as-is.

Related reading: Convert .xls to .xlsm without losing macrosVBA audit checklist before migratingBatch conversion: PowerShell vs LegacyLeaps

Get tips like this in your inbox

Practical fixes for legacy Excel and Access problems. No spam.

← Back to all posts