How to Navigate to the End of a Word Section Using a Bookmark
Question details
The user needs a reliable way to place the insertion point immediately before a following section break without relying on section numbers, which may change dynamically.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Creating a static anchor point at the end of a document section so that VBA scripts, cross-references, or manual navigation tools can find the exact location even if new section breaks are added earlier in the text.
- Observed behavior
- VBA procedures that rely on a specific section number fail or target the wrong section when additional section breaks are inserted into the document.
Ensure that paragraph marks and hidden formatting symbols are visible in your document so you can accurately spot the section breaks and final paragraph marks.
Use a Bookmark at the End of the Target Section
Insert a bookmark right before the section's final paragraph mark to create a fixed anchor that VBA or the Go To dialog can always find, regardless of section numbering changes.
Relying on section index numbers in VBA is risky because inserting or deleting section breaks anywhere earlier in the document will shift the numbering. By using a bookmark, you establish a permanent reference point that moves with the text.
Navigate to the Home tab and click the Show/Hide ¶ button to display hidden formatting symbols, allowing you to clearly see where your section breaks and paragraph marks are located.
Place your cursor at the very end of the target section. Ensure it is a single insertion point immediately before the final paragraph mark and the section break, without highlighting any characters.
Go to the Insert tab on the ribbon and click on Bookmark.
Type a descriptive name for your bookmark. Remember that bookmark names cannot contain spaces. Click the Add button to save it.
To manually navigate back to this point, press Ctrl+G to open the Go To dialog, select Bookmark from the list on the left, choose your newly created bookmark's name from the dropdown, and click Go To.

Master Document Anchors with WPS Writer
WPS Writer offers robust bookmarking and cross-reference tools, allowing you to easily navigate complex documents and write reliable macros without worrying about shifting section breaks.
- 1. Open your document: Launch WPS Writer and open the document containing your sections.
- 2. Show editing marks: Click the Home tab and enable 'Show/Hide Editing Marks' to reveal hidden section breaks.
- 3. Place the cursor: Click to place the cursor right before the target section break and final paragraph mark.
- 4. Add a bookmark: Go to the Insert tab, select Bookmark, give your anchor a descriptive name (no spaces), and click Add.
- 5. Quick navigation: Press Ctrl+G to open the Go To dialog and jump directly to your bookmark anytime.

Frequently Asked Questions
Why shouldn't I just use the section number in my VBA code?
Section numbers are dynamic. If you or another user inserts a new section break earlier in the document, all subsequent section numbers shift. This causes your VBA code to target the wrong part of the document. Bookmarks provide a static, reliable anchor.
Can a bookmark name contain spaces?
No, bookmark names must begin with a letter and cannot contain spaces. If you need to separate words for readability, you can use underscores (e.g., End_Of_Section_1).
What happens if I delete the section break next to the bookmark?
If you accidentally select and delete the exact text or formatting mark that holds the bookmark, the bookmark will be deleted as well. Always verify your bookmarks remain intact after making major structural changes to the document.
How do I view all the bookmarks I have created?
You can view your existing bookmarks by going to the Insert tab and clicking Bookmark. The dialog box will display a list of all bookmarks currently in the document, allowing you to sort them by name or location.




