Microsoft KB Archive/180912

= WD98: CMND+Page Up/Down Keys, Previous/Next Page Buttons Change =

Article ID: 180912

Article Last Modified on 6/17/2005

-

APPLIES TO


 * Microsoft Word 98 for Macintosh

-



This article was previously published under Q180912



SYMPTOMS
In Microsoft Word 98 Macintosh Edition, the color of the Previous Page and Next Page buttons on the vertical scroll bar change to blue, and the ToolTips change to Previous Find/GoTo and Next Find/GoTo.

Also, when you press these buttons or their shortcut keys (COMMAND+PAGE UP or COMMAND+PAGE DOWN), the insertion point either remains in the same place, goes to an incorrect location, or Word displays the following message:

Word has reached the of the document. Do you want to continue searching at the ?



CAUSE
The Previous Page and Next Page buttons are black by default. When a different browse object type is selected, other than Browse by Page, the buttons turn blue to indicate that the Previous and Next buttons have been reassigned. The ToolTips for these buttons also indicate the current button assignments.

For example, the prompt to "continue searching" indicates that a search is active, and the buttons have been reassigned to Previous Find/GoTo and Next Find/GoTo.



WORKAROUND
Use any of the following methods to reset the Previous and Next buttons to Previous Page and Next Page.

Method 1: Reset the Select Browse Object to Browse By Page
Click the Select Browse Object button (located between the Next and Previous buttons on the scroll bar), and then click the Browse By Page icon (far right, top row).

Method 2: Record Resetting the Select Browse Object to Browse By Page
To record the action of resetting the Browse Object to Browse By Page, follow these steps:
 * 1) On the Tools menu, point to Macro, and click Record New Macro.
 * 2) Enter a name for the macro in the Macro name text box and click OK.
 * 3) Click the Select Browse Object button (located between the Next and Previous buttons on the scroll bar), and then click the Browse By Page icon (far right, top row).
 * 4) On the Tools menu point to Macro and click Stop Recording.

You can then assign this macro to a toolbar or menu item.

For more information about how to assign a macro to a toolbar, click the Office Assistant, type How do I assign a macro, click Search, click the "Add a button to a toolbar" topic, and then click to view "Add a button to a toolbar."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

179216 OFF98: How to Use the Microsoft Office Installer Program

Method 3: Create Macros to Reset the Buttons Automatically
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to 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 requirements. You will need to create two macros (BrowseNext and BrowsePrev) that will automatically reset the Browse Object buttons when you click them. Use the following procedure to create the macros.

NOTE: Once these macros have been created with the names BrowseNext and BrowsePrev the COMMAND+PAGE UP, COMMAND+PAGE DOWN keys and the browse buttons on the vertical scrollbar will ALWAYS browse by page.

To create the BrowseNext macro, follow these steps:  Create a new Word 98 document. On the Tools menu, point to Macro, and then click Macros. Under Macro Name, type BrowseNext. In the Macros In box, click to select "All active templates and Documents," and then click Create.

NOTE: This macro has to be called BrowseNext so that it will function When you click the Next Page button.  Change the existing BrowseNext macro to the following: Sub BrowseNext '     ' BrowseNext Macro ' Jump to the next browse object. '        Application.Browser.Target=wdBrowsePage Application.Browser.Next

End Sub  On the File menu, click Save Normal. On the File menu, click Close and Return to Microsoft Word.</li></ol>

To create the BrowsePrev macro, follow these steps: <ol> With your new Word 98 document still open, on the Tools menu, point to Macro, and then click Macros.</li> Under Macro Name type BrowsePrev. In the Macros In box, click to select "All active templates and Documents," and then click Create.

NOTE: This macro has to be called BrowsePrev so that it will function when you click the Previous Page button.</li>  Change the existing BrowsePrev macro to the following: Sub BrowsePrev '     ' BrowsePrev Macro ' Jump to the previous browse object '        Application.Browser.Target=wdBrowsePage Application.Browser.Previous

End Sub </li> On the File menu, click Save Normal.</li> On the File menu, click Close and Return to Microsoft Word.</li></ol>

<div class="moreinformation_section">

Browse Buttons
The Select Browse Object button (located between the Next and Previous buttons on the scrollbar) enables you to select a number of additional object types. Word may assign one of the following properties to the Next and Previous buttons after you attempt to go to any of these objects:

GoTo

Find

Edits

Heading

Graphic

Table

Field

Endnote

Footnote

Comment

Section

Page

For example, if you attempt to go to a comment, the buttons change to Previous Comment and Next Comment. Another example would be when you click Find on the Edit menu. Once you click Find to find an item, the Select Browse Object buttons will be set to Next or Previous Find/GoTo.

COMMAND+PAGE UP and COMMAND+PAGE DOWN
Typically, when you press the COMMAND+PAGE DOWN or COMMAND+PAGE UP shortcut keys, Word will place the insertion point at the top of the next or previous page. However, when another browse object is selected using the Select Browse Object button, these keys browse to the next object in the appropriate direction.

<div class="references_section">