Move the Insertion Point to a Word Bookmark with VBA
Question details
Move the Word insertion point to a named bookmark with VBA, or work with the bookmark without changing the selection.

- 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.
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.
Move the insertion point with Selection.GoTo
Use this method when subsequent macro actions need the insertion point at the bookmark.
In Word, choose Developer > Visual Basic and open the module containing your macro.
Add this line, replacing the name if necessary: Selection.GoTo What:=wdGoToBookmark, Name:="Subs_Needed"
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.

Work directly with the bookmark range
Use the bookmark's Range when the macro can edit content without moving the insertion point.
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.

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.




