VBA & Macro Problems

Move the Insertion Point to a Word Bookmark with VBA

Tauseeq MagsiTauseeq Magsi Nov 13, 2026 869 views

Question details

Move the Word insertion point to a named bookmark with VBA, or work with the bookmark without changing the selection.

Move the Insertion Point to a Word Bookmark with VBA
Product
Microsoft Word
Device & OS
not provided
Scenario
A VBA macro needs to navigate to a bookmark or make substitutions at its location.
Observed behavior
An incorrectly specified bookmark name in ActiveDocument.GoTo may cause a bad-parameter or bookmark-not-found error.
Before you start

In Word, open Insert > Bookmark and confirm the exact bookmark name. Open Developer > Visual Basic to edit the macro, and use a macro-enabled document if the code is stored in the document.

Solution 1Recommended

Move the insertion point with Selection.GoTo

Use this method when subsequent macro actions need the insertion point at the bookmark.

1
Open the VBA editor

In Word, choose Developer > Visual Basic and open the module containing your macro.

2
Go to the bookmark

Add this line, replacing the name if necessary: Selection.GoTo What:=wdGoToBookmark, Name:="Subs_Needed"

3
Collapse the selection

Add Selection.Collapse Direction:=wdCollapseStart to place the insertion point at the start if the bookmark spans text. Run the macro from the VBA editor.

Move the insertion point with Selection.GoTo
Check the bookmark name: The bookmark must exist in the active document. Use ActiveDocument.Bookmarks.Exists("Subs_Needed") to check before navigating.
Free Microsoft Office alternative

Edit Word Documents with WPS Writer

WPS Writer is a free, lightweight alternative with a familiar interface for working with Word documents and moving everyday editing tasks to WPS Office. It does not fix Microsoft Word VBA errors; check macro compatibility before migrating automated documents.

Open and edit Microsoft Word DOC and DOCX filesUse a familiar interface for everyday document editingWork with bookmarks in documents where supportedMove common document workflows to a lightweight office suite
QA img-9

Frequently Asked Questions

How can I check whether a bookmark exists before using it?

In your VBA macro, use ActiveDocument.Bookmarks.Exists("Subs_Needed"). It returns True when the named bookmark exists in the active document.

Why does selecting a bookmark highlight text instead of placing a cursor?

A bookmark can span text. After using Range.Select or Selection.GoTo, use Selection.Collapse Direction:=wdCollapseStart to place the insertion point at the beginning of the selection.

Can I insert text at a bookmark without moving the insertion point?

Yes. Use the bookmark's Range directly, for example: ActiveDocument.Bookmarks("Subs_Needed").Range.InsertBefore "Some Text".

Where can I find the correct bookmark name in Word?

Open Insert > Bookmark in the document and check the name listed there. Use that name in the VBA Name argument or Bookmarks collection.