WD: Jumping to a Bookmark Located in a Header or Footer |
Q113758
The 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.
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 the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please see the following page on the World Wide Web:
http://www.microsoft.com/partner/referral/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://support.microsoft.com/directory/overview.aspThis example shows how to jump to a bookmark in the document header:
Sub MAIN
If ViewHeader() = 0 Then ViewHeader
If ExistingBookmark("test") Then
EditBookmark "test", .Goto
End If
End Sub
The 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
Keywords : kbmacroexample winword word6 winword2 word7 word95
Issue type : kbhowto
Technology : kbWordSearch kbWordWSearch kbWordMSearch
|
Last Reviewed: December 29, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |