Remove Excessive Named Ranges and Broken External Links in Excel with WPS Office
Question details
A user needs to remove more than 100,000 named ranges and several broken external links from a shared Excel workbook that causes Name Manager to fail and VBA cleanup to run out of memory.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- A shared Excel workbook has grown to more than 100,000 named cells and contains several external links; the user needs to clean it up so the workbook opens and performs normally.
- Observed behavior
- Name Manager will not open, Break Links does not work, and VBA cleanup causes memory errors in Excel.
Make a backup copy of the workbook before deleting names or changing links. Ensure the file is closed in Excel and open it in WPS Office Spreadsheets so you can work on a copy without triggering Excel's memory error.
Remove Excessive Named Ranges in Batches in WPS Spreadsheets
Use this solution when the workbook contains a very large number of named ranges and Excel's Name Manager cannot open.
Deleting thousands of names in one operation can still consume memory. WPS Spreadsheets lets you delete names in smaller batches, which reduces the chance of freezing.
Launch WPS Office Spreadsheets, click Menu > Open, and select the backup copy of the shared workbook.
Go to the Formulas tab and click Name Manager to list all defined names in the workbook.
In Name Manager, look for local names, names with #REF! errors, or names that point to external workbooks.
Select a batch of unwanted names, for example 100-200 at a time, click Delete, save after each batch, and repeat until the list is clean.

Break Broken External Links and Remove Inactive Connections
Use this solution after removing excess names if the workbook still references missing external files.
Clean Excessive Named Ranges and Broken External Links in WPS Spreadsheets
Open the problematic workbook in WPS Office Spreadsheets, use Name Manager to delete unwanted named ranges in batches, and use Edit Links to break or relink broken external references. This avoids the memory error you see in Excel and leaves the workbook clean and portable.
- 1. Open the backup workbook: Click Menu > Open in WPS Office Spreadsheets and choose a backup copy of the .xlsx file.
- 2. Open Name Manager: Click the Formulas tab and select Name Manager.
- 3. Delete names in batches: Select unwanted named ranges in small groups, click Delete, and save after each batch.
- 4. Edit external links: Click Data > Edit Links, select the broken source, and click Break Link.
- 5. Save and verify: Save the cleaned workbook as .xlsx and reopen it to confirm normal performance.

Frequently Asked Questions
Why does Excel Name Manager not open when there are too many named ranges?
With more than 100,000 names, Excel can exhaust available memory. WPS Spreadsheets can often open Name Manager and let you delete names in smaller batches.
Can WPS Office break external links in an Excel file?
Yes. Open the workbook in WPS Office Spreadsheets, go to Data > Edit Links, select the broken source, and click Break Link.
Will deleting named ranges affect existing formulas?
Formulas that refer to a deleted name will display a #NAME? error. Review the workbook and keep any names that formulas still need.
Can I save the cleaned file back to .xlsx format?
Yes. WPS Office Spreadsheets supports Microsoft Excel .xlsx files, so you can save the cleaned workbook in the same format.
What should I do if the workbook still runs out of memory during cleanup?
Close other workbooks, delete names in smaller batches, save frequently, and consider rebuilding the workbook from the last stable copy.




