Document Editing Problems

How to Continue Word Page Numbering from an Earlier Section

Steven ParkerSteven Parker Nov 2, 2026 868 views

Question details

The user needs to resume or continue page numbering from a non-consecutive, earlier section, such as an appendix following the numbering of a preliminary section.

How to Continue Word Page Numbering from an Earlier Section
Product
Word
Device & OS
not provided
Scenario
Managing complex document structures where appendices or specific target sections must logically follow the page numbering of an earlier, non-adjacent section.
Observed behavior
Word's built-in formatting tools only allow continuing page numbering from the immediate previous section or starting at a manually specified value, lacking native support to automatically link non-consecutive sections.
Before you start

Before modifying your document's numbering logic, ensure you have enabled the Developer tab in your ribbon to access the VBA editor, and save a backup copy of your file.

Solution 1Recommended

Use a VBA Macro to Link Non-Consecutive Sections

Since native features only link adjacent sections, running a custom VBA macro is the most effective way to dynamically calculate and link page numbers across arbitrary sections.

A VBA macro can programmatically check the final page number of your earlier section, add one to it, and apply that calculated value as the starting page number for your later section.

Because this process relies on custom code, the file must be saved in a macro-enabled format to ensure the functionality remains active for future edits.

1
Open the VBA Editor

Press 'Alt + F11' to open the Microsoft Visual Basic for Applications window, or navigate to the Developer tab and click 'Visual Basic'.

2
Insert the Macro Code

Insert a new Module and input a macro script designed to capture the final page number of your target earlier section (e.g., Section 2) and assign 'that value + 1' to the starting page number of your later section (e.g., Section 4).

3
Add a Quick Access Button

Right-click the Quick Access Toolbar, select 'Customize Quick Access Toolbar', and add your new macro as a button so you can easily run it whenever the length of your earlier section changes.

4
Save as a Macro-Enabled File

Go to 'File' > 'Save As' and choose 'Word Macro-Enabled Template (*.dotm)' or 'Word Macro-Enabled Document (*.docm)' to preserve your custom script.

Use a VBA Macro to Link Non-Consecutive Sections
Updating Linked Elements: Remember to re-run the macro and manually update your Table of Contents or Table of Figures whenever you add or remove pages in the earlier sections, as the page numbers will not update dynamically in real-time.
Simplify Document Formatting

Master Complex Page Numbering with WPS Writer

WPS Writer offers an intuitive interface for managing complex document layouts, section breaks, and custom page numbering. With powerful formatting options and robust compatibility, handling advanced document structuring becomes effortless.

  1. 1. Insert Section Breaks: Open your document in WPS Writer, go to the 'Page Layout' tab, and use 'Breaks' to clearly separate your document into distinct sections.
  2. 2. Access Header and Footer: Double-click the header or footer area of the target section and turn off 'Link to Previous' to isolate its formatting.
  3. 3. Format Page Numbers: Click 'Page Number' in the Insert tab, select 'Format Page Numbers', and manually define the 'Start at' value to seamlessly continue from your desired earlier section.
Intuitive graphical interface for managing headers, footers, and section breaksFully compatible with Microsoft Word .docx, .doc, and .docm formatsEasily customize starting page numbers for specific appendices or chaptersLightweight application with high performance for large, complex documents
microsoft office alternative - wps office

Frequently Asked Questions

Why won't Word let me continue page numbers from Section 2 into Section 4?

Word's native 'Continue from previous section' feature only applies to the immediately preceding section (e.g., Section 3 into Section 4). To skip intermediate sections, you must either manually set the starting number for the new section or use a VBA macro to calculate it automatically.

Can I save my page numbering macro in a standard Word document?

No, standard .docx files strip out custom code for security reasons. Documents containing VBA macros must be saved in a macro-enabled format, such as .docm (Macro-Enabled Document) or .dotm (Macro-Enabled Template).

Will my Table of Contents automatically update after I run the numbering macro?

While advanced macros can be programmed to update the TOC automatically, standard macros only update the page numbers themselves. If your script doesn't handle the TOC, you will need to right-click your Table of Contents and select 'Update Field' to reflect the new pagination.

Do I need to re-run the macro if I edit the earlier section?

Yes. If you add or remove text that changes the total page count of the earlier section, you must run the macro again to recalculate and correctly assign the new starting number for your later section.