Fix Copy and Paste Not Working in Excel Templates
Question details
The user is unable to copy and paste data into a specific Excel template because the copied selection clears upon switching to the destination workbook.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Copying data from a source worksheet and attempting to paste it into a specific destination Excel template workbook.
- Observed behavior
- The dashed border around the copied cells disappears immediately when selecting the destination workbook, making it impossible to paste the data.
Ensure that no background clipboard managers or macro-enabled applications are currently running, and save a backup copy of your Excel template before attempting troubleshooting steps.
Restart Excel in Safe Mode and Disable Add-ins
Add-ins often interfere with the clipboard. Running in Safe Mode helps identify if a third-party add-in is clearing your copied selection.
When you switch between workbooks, Excel add-ins or automatic startup macros can trigger events that accidentally clear the clipboard, causing the moving border (marching ants) to disappear.
Hold down the 'Ctrl' key and double-click the Excel shortcut to open the application in Safe Mode.
Open the problematic template workbook from the 'File' > 'Open' menu while holding the 'Shift' key to bypass any automated startup behavior.
Copy data from another sheet and see if it pastes correctly into the template. If it works, an add-in is likely the cause.
Go to 'File' > 'Options' > 'Add-ins'. Select 'COM Add-ins' from the Manage drop-down and click 'Go'. Uncheck them one by one to identify the culprit.

Check Worksheet Protection and Transfer Contents
If the issue persists, the template file itself might be protected, corrupted, or contain invisible blocking objects.
Open Your Excel Templates in WPS Office
If Microsoft Excel continues to drop your clipboard selection due to complex add-in conflicts or file corruption, try opening your template in WPS Office. It provides a lightweight, free alternative with excellent format compatibility and a familiar interface, ensuring seamless data management without the hassle.
- 1. Install WPS Office: Download and install WPS Office for free on your device.
- 2. Open the Template: Launch WPS Spreadsheet and click 'Open' to select your existing Excel template file.
- 3. Copy and Paste Seamlessly: Copy your data from the source file and paste it into the destination template; WPS handles the clipboard reliably.

Frequently Asked Questions
Why does the dashed moving border disappear when I switch Excel windows?
The dashed moving border (marching ants) disappears when an action clears the system clipboard or interrupts Excel's state. This is commonly caused by background macros, conflicting COM add-ins, or sometimes opening the destination workbook in a completely separate Excel instance.
Will reinstalling Excel fix the copy and paste template issue?
Reinstalling might not resolve the issue if a third-party add-in or the template file itself is the root cause. It is recommended to test the file in Safe Mode first to isolate the problem before attempting a full software reinstallation.
How do I know if my Excel template is corrupted?
Signs of file corruption include unexplained crashing, inability to save or paste data, missing formatting, or unusual objects appearing on the worksheet. Transferring the data to a fresh workbook can often resolve file-specific corruption.




