logo
search
Document Editing Problems

Fix Word Index Update Removing Bookmarked Page Number Links

Maira MehtabMaira Mehtab Sep 22, 2026 870 views

Question details

The user needs a way to prevent bookmarked page-number hyperlinks from breaking or disappearing when updating an index in Word.

Product
Word 2021 for Mac
Device & OS
Mac
Scenario
Updating a document index after making pagination changes.
Observed behavior
Clickable page-number links associated with bookmarked sections are removed or broken upon updating the index.
Before you start

Before proceeding with VBA macros, save a backup copy of your document to prevent any accidental loss of index formatting or existing bookmarks.

Solution 1Recommended

Use a VBA Macro to Preserve Hyperlinks During Index Update

Running a specific VBA macro restores or preserves the bookmarked page-number links that are typically stripped out during a standard index update.

Microsoft Word's default index generation field code often overrides manual hyperlink formats when updated. A VBA script can iterate through the index entries and reapply the hyperlinks to the corresponding bookmarks automatically.

1
Open the VBA Editor

In Word for Mac, go to the 'Tools' menu, select 'Macro', and then click 'Visual Basic Editor'.

2
Insert a New Module

In the Project Explorer pane on the left, right-click your document name, choose 'Insert', and select 'Module'.

3
Paste the Macro Code

Paste the required VBA macro code designed to preserve index hyperlinks into the newly opened module window.

4
Run the Macro

Close the Visual Basic Editor, go back to 'Tools' > 'Macro' > 'Macros', select your newly created macro from the list, and click 'Run' to update the index while keeping links intact.

Macro Security Settings: You may need to enable macros in your Word security settings to allow the script to execute properly. Always ensure you are running trusted macro code.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Editing

If managing complex VBA macros in Microsoft Word is slowing you down, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for creating, editing, and formatting documents without the hassle.

  1. 1. Download and Install: Get WPS Office from the official website and install it on your Mac or PC.
  2. 2. Open Your Document: Launch WPS Writer and open your existing Word document to seamlessly continue your work.
  3. 3. Manage References: Navigate to the 'References' tab to easily manage your indices, tables of contents, and bookmarks.
Fully compatible with Microsoft Word DOCX and DOC formats, preserving your original layouts.Built-in robust referencing and index generation tools for professional documents.Lightweight software with a familiar, easy-to-use interface that requires almost no learning curve.Free to use for everyday document creation, editing, and management.
microsoft office alternative - wps office

Frequently Asked Questions

Why do my hyperlinks break when I update the index in Word?

By default, updating an index field in Word regenerates the text based on field codes, which inherently overwrites any manual formatting and custom hyperlinks you have applied to the page numbers.

Can I make index page numbers clickable without using a macro?

While you can manually add hyperlinks to page numbers one by one, any subsequent update to the index will overwrite and remove them again. A macro is the most efficient and reliable way to automate this restoration.

How do I enable macros in Word for Mac?

Go to 'Word' > 'Preferences' > 'Security & Privacy', and ensure that 'Disable all macros with notification' is selected so you can choose to enable them when opening a document containing macros.

Does this issue happen in both Windows and Mac versions of Word?

Yes, the behavior where updating an index strips out custom hyperlinks is present in both Word for Windows and Word for Mac due to how the core index field code functions.