WD: Jumping to a Bookmark Located in a Header or FooterLast reviewed: February 16, 1998Article ID: Q113758 |
The information in this article applies to:
SUMMARYThe versions of Word listed above allow you to insert bookmarks into a document header or footer. In versions of Word prior to Word 97 and Word 98 Macintosh Edition, you can only jump to a bookmark in a document header or footer when the header or footer pane is active. This article contains macro samples that demonstrate how to jump to a bookmark in a header or footer.
MORE INFORMATIONMicrosoft 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 engineers 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 the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/refguide/default.aspThis example shows how to jump to a bookmark in the document header:
WordBasic can open the document header or footer, check that the bookmark exists, and then go to the bookmark using the EditBookmark statement. The following sample macro opens the header pane and goes to the bookmark named Test.
Sub MAIN If ViewHeader() = 0 Then ViewHeader If ExistingBookmark("test") Then EditBookmark "test", .Goto End If End SubThe following sample macro opens the footer pane and goes to the bookmark named Test.
Sub MAIN If ViewFooter() = 0 Then ViewFooter If ExistingBookmark("test") Then EditBookmark "test", .Goto End If End Sub |
Additional query words: editbookmark go to
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |