Article ID: 105885 - Last Review: January 18, 2007 - Revision: 2.4 WD: Cannot Go to Bookmark in a SubdocumentThis article was previously published under Q105885 On This PageSYMPTOMS
When you use the Go To command in Microsoft Word, you cannot go from one
subdocument (or document component) to a bookmark in another subdocument or
the main body of the document. Similarly, you cannot go from the main body
of a document to a bookmark in a subdocument. In other words, you cannot go
from one layer of a document to a bookmark in another layer. The bookmark
does not appear on the Bookmark Name list in the Edit Go To dialog boxes.
In the Edit Bookmark dialog box, the Go To button is unavailable when you
select a bookmark in another layer or subdocument.
NOTE: As used in this article, the word "subdocument" refers to document components and not to the documents in a master document. The main body of the document is what you can see in normal view. The following document elements are examples of subdocuments or document components: headers or footers, footnotes, endnotes, annotations, text boxes, or callouts. Examples
WORKAROUND
To work around this problem, use the appropriate method for your situation.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or Microsoft Advisory Services. For more information, visit these Microsoft Web sites: Microsoft Certified Partners - https://partner.microsoft.com/global/30000104 (https://partner.microsoft.com/global/30000104) Microsoft Advisory Services - http://support.microsoft.com/gp/advisoryservice (http://support.microsoft.com/gp/advisoryservice) For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS (http://support.microsoft.com/default.aspx?scid=fh;en-us;cntactms) Method 1Position the insertion point in the subdocument before you go to the bookmark.Method 2 (Word 97 and Word 98)Write a Visual Basic for Applications macro that checks for the existence of the bookmark and if it exists, goes to that bookmark. The following macro checks for and goes to the bookmark "test", if it exists:Method 3 (Word 6 and Word 7)Write a WordBasic macro that goes to the text box and searches for a bookmark. The following macro searches for the first text box in the document and locates the bookmark called "test."STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
MORE INFORMATION
There is an exception to this behavior. If the insertion point is
in a header or footer when you click Go To on the Edit menu, Word
moves the insertion point into the body of the document and returns it
to the last position before you switched to the header or footer. This
means you cannot go to a bookmark in the header or footer using the Go
To command on the Edit menu. This does not happen when you use the
Bookmark command on the Edit menu and click Go To; the insertion point
stays in the header or footer and you can go to your bookmark, as expected.
Visual Basic for Applications ExampleWordBasic ExampleThe following macro opens the Header/Footer and goes to the suggested bookmark.APPLIES TO
| Article Translations
|

Back to the top
