How to Fix Incorrect Endnote Numbering After Copying Content into Word
Question details
Users experience incorrect or jumping endnote numbers (such as skipping to 48 or 49) after copying and pasting content into a document.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Pasting text containing endnotes from an external source, such as a PDF or a webpage, into a Word document.
- Observed behavior
- The apparent endnote references appear as incorrect numbers because they are pasted as static superscripted text rather than genuine, dynamically numbered Word endnote fields.
Before making bulk changes or running macros, reveal document formatting marks to verify if your references are actual endnote fields or just formatted superscript text.
Use a VBA Macro to Convert Superscript Text into Genuine Endnotes
Use this method when copied text from a PDF appears as superscript numbers instead of true dynamic endnotes, allowing you to fix bulk formatting issues quickly.
When copying from external sources like PDFs, the Windows clipboard may drop the field codes, causing Word to paste endnote numbers as plain superscript text. A VBA macro can automatically detect these superscript numbers and convert them into properly formatted, dynamically numbered endnote fields.
Press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications (VBA) editor.
In the top menu, click 'Insert' and select 'Module' to open a blank code window.
Paste your custom macro code designed to loop through superscripted text and convert it to true endnotes. Ensure the code is set to leave existing, valid endnote references unhighlighted and untouched.
Press F5 or click the 'Run' button. The macro will process the document structure, replace the superscripts, and correct the endnote numbering sequentially.

Manually Replace Superscripts with Genuine Endnotes
Best for documents with only a few corrupted or incorrectly numbered endnotes where running a macro is unnecessary.
Seamlessly Manage Endnotes with WPS Office
WPS Writer provides intuitive and robust tools to properly insert and manage endnotes, ensuring correct sequential numbering and flawless formatting without the need for complex VBA macros.
- 1. Open Your Document: Launch WPS Writer and open the document you wish to edit.
- 2. Position Your Cursor: Click exactly where you want the endnote reference number to appear in the text.
- 3. Navigate to References: Go to the 'References' tab located on the top menu ribbon.
- 4. Insert the Endnote: Click on 'Insert Endnote'. WPS Writer will automatically generate the correctly sequenced number and jump to the end of the document.
- 5. Add Reference Text: Type or paste your reference content into the newly created endnote section.

Frequently Asked Questions
Why do my endnote numbers jump sequentially after pasting from a PDF?
PDF text lacks the dynamic field coding used by word processors. When pasted, endnote references often convert to static superscript text. Because Word doesn't recognize these as true endnotes, any actual endnotes you add later will seem out of order or skip numbers.
Can I fix incorrect endnote numbers without using a macro?
Yes, but you will need to manually delete the static superscript numbers and use the 'Insert Endnote' feature under the References tab to recreate each endnote reference individually.
Why does the Windows clipboard sometimes corrupt endnote formatting?
During complex copy-and-paste operations across different file formats, the clipboard may strip the underlying XML or field codes to simplify the data, leaving only the visual superscripted text formatting behind.




