WD2000: CTRL+Page Up/Down Keys, Previous/Next Page Functions Change (212298)
The information in this article applies to:
This article was previously published under Q212298 SYMPTOMS
The color of the Previous Page and Next Page buttons
on the vertical scroll bar changes to blue, and the ToolTips change to
Previous Find/GoTo and Next Find/GoTo.
Also, when you press these buttons or their shortcut keys (CTRL+PAGE UP or
CTRL+PAGE DOWN), either the insertion point remains in the same place or goes
to an incorrect location, or Word displays the following message:
Word has reached the {beginning or end} of the document. Do you want to
continue searching at the {beginning or end}?
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: Create Macros to Reset the Buttons AutomaticallyMicrosoft 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 need to create two macros (BrowseNext and BrowsePrev) that automatically reset the Browse Object buttons when you click them. Use the
following procedure to create the macros. NOTE: Creating these macros disables your ability to browse by any object except page.
To create the BrowseNext macro, follow these steps:
- Create a new Word document.
- On the Tools menu, point to Macro, and then click Macros.
- Under Macro Name, type "BrowseNext" (without the quotation marks).
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.
To create the BrowsePrev macro, follow these steps:
- With your new Word document still open, on the Tools menu, point to
Macro, and then click Macros.
- Under Macro Name, type "BrowsePrev" (without the quotation marks).
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.
- 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
- On the File menu, click Save Normal.
- On the File menu, click Close and Return to Microsoft Word.
Method 3: Record Resetting the Select Browse Object to Browse by Page
To record the action of resetting the Browse Object to Browse by Page:
- On the Tools menu, point to Macro, and click Record New Macro.
- Enter a name for the macro in the Macro Name box, and click OK.
- 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).
- 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 Microsoft Word Help on the Help menu, type add a button to a toolbar in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbmacroexample kbpending kbprb kbusage KB212298 |
---|
|