VBA & Macro Problems

Fix Excel Removing Data Validation When Saving an XLSM File

Kushani NimanthikaKushani Nimanthika Nov 13, 2026 868 views

Question details

User needs to stop Excel from reporting corrupted content and removing drop-down data validation rules after converting an XLSX workbook to an XLSM file, especially rules that use merged cells or source ranges on another worksheet.

Fix Excel Removing Data Validation When Saving an XLSM File
Product
Microsoft Excel (macro-enabled .xlsm workbooks)
Device & OS
not provided
Scenario
Converting an XLSX workbook to XLSM, saving the macro-enabled file, and keeping drop-down data validation rules intact.
Observed behavior
Excel reports corrupted content and removes some drop-down data validation rules, particularly rules involving merged cells or list sources on another worksheet.
Before you start

Create a copy of the workbook and open it in Excel with the Developer tab enabled. Identify the drop-down cells that disappear and note whether they use merged cells, List validation, or source ranges on another worksheet.

Solution 1

Check VBA code that modifies or deletes data validation rules

Use this first when macros exist in the converted XLSM workbook; VBA may remove or rebuild validation when the file opens or saves.

1
Open the VBA editor

Open the workbook in Excel, press Alt+F11 to open the Microsoft Visual Basic for Applications editor, and expand the VBAProject for the workbook.

2
Search for validation code

Press Ctrl+F, search for Validation, Delete, Add, or Modify, and review each macro in ThisWorkbook and modules that could change drop-down lists.

3
Disable or remove macros and test

Comment out or delete the suspicious macro, save the workbook as .xlsm, close and reopen it, then confirm whether the data validation rules remain.

Free Microsoft Office alternative

Try WPS Office as a Free Excel Alternative for XLSM Workbooks

If Excel keeps repairing or removing data validation when saving .xlsm files, WPS Office is a free, lightweight alternative that opens, edits, and saves macro-enabled workbooks with a familiar ribbon interface, Excel format compatibility, and seamless migration.

  1. 1. Download WPS Office: Visit the official WPS Office website, download the free installer for your Windows or macOS device, and complete the installation.
  2. 2. Open the .xlsm workbook: Launch WPS Office, click Menu > Open, and select the macro-enabled Excel workbook you need to test or edit.
  3. 3. Verify and save data validation: Click Data > Validation to review drop-down list sources, then save the workbook from WPS Office to see if the validation remains intact.
Opens and saves .xlsm and .xlsx files with Excel-compatible data validation listsFree and lightweight compared with Microsoft ExcelFamiliar Office-style ribbon makes migration from Excel simpleLets you test the workbook outside Excel when Office flags corrupted contentSupports named ranges and table sources for drop-down validation
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel remove data validation when I save as an XLSM file?

It usually happens when Excel's repair process flags the workbook as corrupted. Macros that modify validation, merged input cells, or direct cross-sheet list sources can trigger this after an XLSX-to-XLSM conversion.

Can WPS Office open and save an XLSM file without losing drop-down lists?

Yes, WPS Office can open and save .xlsm workbooks. However, if the file is already corrupted, you should still rebuild the validation using an unmerged cell and a named range or table source.

How do I create a named range for a data validation list?

Select the source cells, click Formulas > Define Name, enter a name, and click OK. Then in Data Validation, choose List and enter =YourName as the source.

Should I avoid merged cells for data validation drop-downs?

Yes, apply data validation to a single unmerged input cell. Use merged cells only for labels or headers so Excel is less likely to remove the rule during repair or conversion.

How do I run Office Repair if the issue affects clean workbooks?

Close Excel, go to Windows Settings > Apps > Installed apps, select Microsoft Office, choose Modify, and run Quick Repair first. If the problem continues, run Online Repair.