logo
search
Formatting Issues

How to Fix Incorrect Endnote Numbering After Copying Content into Word

Huda QurayshiHuda Qurayshi Sep 25, 2026 872 views

Question details

Users experience incorrect or jumping endnote numbers (such as skipping to 48 or 49) after copying and pasting content into a document.

How to Fix Incorrect Endnote Numbering After Copying Content into Word
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 you start

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.

Solution 1Recommended

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.

1
Open the VBA Editor

Press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications (VBA) editor.

2
Insert a New Module

In the top menu, click 'Insert' and select 'Module' to open a blank code window.

3
Apply the Macro Code

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.

4
Run the Macro

Press F5 or click the 'Run' button. The macro will process the document structure, replace the superscripts, and correct the endnote numbering sequentially.

Use a VBA Macro to Convert Superscript Text into Genuine Endnotes
Image Processing Limitations: Note that standard text-conversion macros do not process images. If your original copied endnotes contained images, you will need to manually adjust or re-insert those images.
Efficient Document Formatting

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. 1. Open Your Document: Launch WPS Writer and open the document you wish to edit.
  2. 2. Position Your Cursor: Click exactly where you want the endnote reference number to appear in the text.
  3. 3. Navigate to References: Go to the 'References' tab located on the top menu ribbon.
  4. 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. 5. Add Reference Text: Type or paste your reference content into the newly created endnote section.
Easily insert and manage dynamic footnotes and endnotesHighly compatible with Microsoft Word (.docx) formats and field codesAutomatically updates and correctly sequences reference numberingLightweight application with a clean, user-friendly interface
microsoft office alternative - wps office

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.