The information in this article applies to:
SUMMARYWord does not provide a feature to move the insertion point to the top of the current page. However, you can achieve this result by using a short WordBasic macro. MORE INFORMATION
The WordBasic programming language provides the following features you can
use to create a macro that moves the insertion point to the top of the
current page. For the WordBasic commands appropriate to your version of
Word, see the section under the heading that describes your version of
Word.
Q159973 Word 97: Macro to Move Insertion Point to Top of Current PageWARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. Word 7.x for Windows 95, and Word 6.x (all platforms)In Word 6.x and Word 7.x for Windows 95, you can use the commands "GoToPreviousPage," or "GoToNextPage" to move to the top of a page. The following table lists the the keyboard shortcuts and their eqivalent WordBasic commands.
The following macro example moves the focus point to the next page in a
document:
Word 2.xThere are two commands in WordBasic for Word 2.x can be used to move to a new page in a document:
NOTES: You can modify the second line in the above macro to move the
insertion point to other locations, as described below:
You can add these macros to your Normal template, where they are available
globally. For information on assigning this macro to a shortcut key
combination, see the "Customizing Shortcut Key Assignments" section on page
721 of the "Microsoft Word for Windows User's Guide."
REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 721, 765, 784-786 Additional query words: macro
Keywords : kbmacro wordnt kbmacroexample winword ntword macword word6 word7 word95 |
Last Reviewed: September 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |