Others

Fix Excel Endless Prompt Loop When Copying Worksheets

Rana GarciaRana Garcia Nov 3, 2026 869 views

Question details

The user experiences an endless loop of prompts (Yes, No, OK, Cancel) when trying to copy or duplicate a worksheet.

Fix Excel Endless Prompt Loop When Copying Worksheets
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 you start

Before modifying defined names or deleting conflicting formulas, save a backup copy of your spreadsheet to prevent accidental data loss.

Solution 1Recommended

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.

1
Open the Name Manager

Navigate to the Formulas tab on the top ribbon and click on Name Manager.

2
Identify Workbook-Scoped Names

Review the list of defined names and look at the Scope column. Locate the names where the scope is set to Workbook.

3
Create Replacement Names

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.

4
Update Existing Formulas

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.

5
Delete Original Names

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.

Recreate Defined Names with Worksheet Scope
Hidden Defined Names: Sometimes defined names are hidden and will not appear in the Name Manager interface. If the prompt loop continues, you may need to use a VBA script or a third-party add-in to unhide and remove them.
WPS Spreadsheet Solution

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. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the workbook that contains the problematic defined names.
  2. 2. Access the Name Manager: Navigate to the Formulas tab and click on the Name Manager icon to view all defined names.
  3. 3. Adjust your defined names: Easily add or delete defined names, recreating them with a specific worksheet scope to avoid duplication conflicts.
  4. 4. Copy worksheets without errors: Right-click your worksheet tab and select Move or Copy. The duplication will process smoothly without endless prompts.
Easily manage workbook and worksheet scopesFully compatible with Microsoft Excel (.xlsx, .xls) filesFree and lightweight alternative for complex spreadsheet managementIntuitive interface with no steep learning curve
microsoft office alternative - wps office

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.