Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2019, 03:45 PM
AmyJSchneider AmyJSchneider is offline PgUp/PgDn not working as expected in Word 2019; macro workaround? Windows 10 PgUp/PgDn not working as expected in Word 2019; macro workaround? Office 2019
Novice
PgUp/PgDn not working as expected in Word 2019; macro workaround?
 
Join Date: Jan 2019
Posts: 1
AmyJSchneider is on a distinguished road
Default PgUp/PgDn not working as expected in Word 2019; macro workaround?

Ever since I installed Word 2019, I cannot get PgDn and PgUp to place the cursor at the top of the next **screen** of text, in Draft mode, as it did in Word 2010. It either goes to the top of the next **page** (after the page break), or to the same line it was on in the previous screen (if it was on the tenth line of the previous screen and I hit PgDn, the screen advances and the cursor is on the tenth line of the next screen).

I had tried macro-ing it, but that didn't work either.

The keystrokes I recorded for the macro (PgDn to advance to next screen, Ctrl+Alt+PgUp to move cursor to top of screen) produce the code below. (They work fine if I do them manually!) I've been doing it manually for now, but four keystrokes and two hands for what used to take one keystroke and one finger is quite annoying!

The macro code that doesn't work is this:

Selection.MoveDown Unit:=wdScreen, Count:=1
Selection.HomeKey Unit:=wdWindow

It returns an error of "Run-time error '4120': Bad parameter". In the VBA editor, the second line is highlighted.
I tried adding ", Count:=1" to the second line and this returned "Compile error: Named argument not found."
Changing "Window" to "Screen" also gave me the "bad parameter" error. Adding the "count" gives the compile error again.

The command assigned to Ctrl+Alt+PgUp (which I used to return to the top of the screen and generate that second line of code) is StartOfWindow. I haven't been able to find a way to translate that into VBA code that works.

I found this page, which suggested that "WordBasic.StartOfWindow" should work. It does not; cursor in middle of screen again.
https://www.office-forums.com/…/runn...ommands.1865…/

This page seems to back that one up (Search for "startofwindow"): http://www.exelana.com/techie/vba/MacrosReport.pdf

----------------------------------------------------------------------------



It looks to me that in Word 2019, they changed the native way that PgDn and PgUp work. Yes/no?

I have no idea why my macro code won't run. I've consulted with Jack Lyon of Editorium on this, because at first I thought it was an ETKPlus problem, but that appears not to be the case* and he seems to be stumped as well.

*The ETKPlus custom macros for PgUp and PgDn place the cursor at the top of the PAGE, which is useful when you are in Page view, but not in Draft view, which is my preference so I can work a screenful at a time.

Thoughts? I am tearing my hair out.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbered headings not working as expected after customising headings seanspotatobusiness Word 5 03-03-2017 04:44 AM
Creating bullet animations not working as expected stpwaddell PowerPoint 1 01-04-2017 03:10 AM
PgUp freezes weamish Word 6 08-15-2014 06:43 AM
PgUp/PgDn not working as expected in Word 2019; macro workaround? Macro not Performing Formula Update as Expected tandchas Excel Programming 7 06-27-2014 05:42 AM
"Previous Item" not working as expected 14spar15 Outlook 0 03-31-2011 12:25 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft