Fix Excel Endless Prompt Loop When Copying Worksheets
Question details
The user experiences an endless loop of prompts (Yes, No, OK, Cancel) when trying to copy or duplicate a worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Duplicating or copying a worksheet within an existing workbook.
- Observed behavior
- Excel continuously prompts the user to resolve name conflicts, creating an endless loop of confirmation dialogues due to duplicated workbook-level defined names.
Before modifying defined names or deleting conflicting formulas, save a backup copy of your spreadsheet to prevent accidental data loss.
Recreate Defined Names with Worksheet Scope
Fix the name conflict loop by identifying workbook-scoped names and replacing them with worksheet-scoped names in the Name Manager.
Excel enters this prompt loop because it attempts to duplicate a defined name that already exists globally across the workbook. To resolve this, you must recreate the problematic names with a local worksheet scope, as spreadsheet applications generally do not allow you to directly change the scope of an existing defined name.
Navigate to the Formulas tab on the top ribbon and click on Name Manager.
Review the list of defined names and look at the Scope column. Locate the names where the scope is set to Workbook.
Click New to create a replacement name. Enter the same or a similar name, and crucially, select the specific worksheet from the Scope dropdown menu instead of Workbook.
Review your spreadsheet and update any formulas that referenced the old workbook-scoped name to ensure they now point to your newly created worksheet-scoped name.
Once you have verified that formulas are working correctly, select the original workbook-scoped name in the Name Manager and click Delete. You can now copy the worksheet without the prompt loop.

Manage Defined Names Safely in WPS Office
WPS Spreadsheet provides a robust and highly compatible Name Manager that makes it easy to handle global and local scopes, preventing endless prompt loops when duplicating your worksheets.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the workbook that contains the problematic defined names.
- 2. Access the Name Manager: Navigate to the Formulas tab and click on the Name Manager icon to view all defined names.
- 3. Adjust your defined names: Easily add or delete defined names, recreating them with a specific worksheet scope to avoid duplication conflicts.
- 4. Copy worksheets without errors: Right-click your worksheet tab and select Move or Copy. The duplication will process smoothly without endless prompts.

Frequently Asked Questions
Why does Excel keep asking me to update values when copying a sheet?
This usually happens when the sheet being copied contains formulas or defined names that reference external links or workbook-scoped names that already exist, forcing the software to ask for clarification on which reference to use.
Can I directly change the scope of a defined name from Workbook to Worksheet?
No, standard spreadsheet functionality does not allow you to change the scope of an existing defined name. You must delete the original name and create a new one with the desired worksheet scope.
How do I find hidden defined names causing conflicts?
Hidden defined names won't appear in the standard Name Manager list. You will typically need to use a simple VBA macro to change their visibility property to 'Visible', after which you can delete them normally.




