Word - Auto-scroll in the Word window
Asked By Nomey
08-Jan-10 11:13 AM
Hi all,
Does anyone here know whether it is possible have the Word window auto-scroll (by vba)? I am asking this is because I woule like to keep looking at the same position all the time while typing, so there are always, let us say 10 (or any other number to be set) lines above the cursor automatically.
Cheers,
Shirley Nomey
Word
(1)
VBA
(1)
Shirley
(1)
Scrollbar
(1)
Keystokes
(1)
Atttempt
(1)
Window
(1)
Timer
(1)
Jonathan West replied to Nomey
That's really hard to do. Firstly, you would need the macro to run on every
possible keypress. That alone makes it almost impracticable. You would have
to fire the macro from almost every keyboard combination that was not already
in used. (I do know of another way, but it is really complicated and
involves external programs which monitor the keystokes in the word editing
window and act accordingly. Don't go there.)
Second is that the scrolling controls in Word VBA are not fine enough for the
job. The key property is the VerticalPercentScrolled property. But as you
can see from the Help, it is a value of type Long, in the range 0 to 100.
You cannot assign fractional values. On a long document, that is not nearly
fine enough control for what you want to achieve.
So, I have to say that it cannot be done.
--
Regards
Jonathan West
Karl E. Peterson replied to Jonathan West
Jonathan West wrote on 1/8/2010 :
I'd tend towards the same conclusion, but would probably use "really
should not" rather than "cannot." The problem with monitoring keystrokes
is bad enough to warrant the should not. A timer would be a complete
disaster, too. Can you even imagine, if you were trying to mouse
about, and the thing started scrolling on its own?
But for the actual repositioning, were one bull-headed enough to pursue
this, it *might* be possible to tweak the scrollbar properties at a
finer resolution than the object model allows?
--
.NET: it is About Trust!
http://vfred.mvps.org
Nomey replied to Karl E. Peterson
Jonathan & Karl, thanks for your savvy comments! My knowledge of vba is far too basic to even atttempt building such a routine. I thought it to be fairly straightforward, but apparently it is not.
Kind regards,
Shirley
Trying to number two sections two different ways Word I am trying to make a document in Word 2010. I know there are separate Technet non NNTP forums for the 2010 Beta, but that have the familiarity with page numbering that there is here. So. . . . (Pretend it is Word 2007) if you can help me. Oh yeah, and on Win 7 but I doubt an easy way, but all the descriptions and help on MSFT's Office site for Word are geared to Word 2007 and while what I want to do may be the same in Word 2007 and Word 2010, I cannot get it done and it is holding up my doc. I would and Help and I cannot get this done. At http: / / office.microsoft.com / en-us / word / HP012264861033.aspx#5 there is not anything that helps me because I do not see
copy and paste text crashes word Word If I copy text from Textedit or a pdf (using Preview) and then paste that text into Word it will crash. Once that happens I have to log out of OSX and come back before Word will run without crashing (it will open and as soon as I enter a keystroke or select a menu it crashes). Copy and pasting from within word is fine. Running the latest version of Office 2008. Any thoughts? MAC Office Word Discussions CFRunLoopRunInMode (1) Microsoft Excel (1) Microsoft Word (1) RunCurrentEventLoopInMode (1) CFRunLoopRunSpecific (1) ACTIVBoards (1) Word 2007 (1) Office (1) What version / update of OS X? Have you recently repaired disk
Collaboration with PC users of various wordversions. . .help needed. Word Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I am beginning a big project where I will be collaborating on a word file between my machines: OSX SL with Word 2008, and various PCs with differing versions of Word installed. <br> <br> My normal.dotm is the same on all my mac machines, but I see. What do I need to do to make this so. Thx!!! MAC Office Word Discussions PowerPoint (1) SharePoint (1) Office 2010 (1) Office 2007 (1) Word 2003 (1) Word 2010 (1) Word 2007 (1) Windows 7 (1) You need to install Parallels, a copy of Windows 7
Microsoft Word 2004 extreme lag. Word Version: 2004 Operating System: Mac OS X 10.6 (Snow Leopard) I am experiencing an extreme lag when I open, type, delete character in word document. <br> <br> I am using the latest Macbook, with Snow Leopard Version 10.6 1. The Word 2004 has been updated to version 11.5.7, the latest one. It has been rectify the problem? Please let me know asap. <br> <br> Thanks, <br> Adrian MAC Office Word Discussions Microsoft Word (1) Office (1) Excel (1) Adobe (1) Webcrossing.JaKIaxP2ac0 (1) FontBook (1) GHz (1) Illustrator not email me about forum matters unless you intend to pay! - - John McGhie, Microsoft MVP (Word, Mac Word); Consultant Technical Writer, McGhie Information Engineering Pty Ltd, Sydney, Australia. Ph: +61 (0)4 1209
Chinese characters Word Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC I have always been able to use Chinese characters in the English version of Word 2004 (Mac) and Word 2003, 2007 (Windows). Now with Word 2008, no-go. I can type fresh characters fine, but if If I paste in an aside, there is no "Microsoft Language Register" for any of these other versions of Word. Both TextEdit and iWork > Pages can open a Word document that has Chinese characters, or paste Chinese characters into a new document and it looks fine. What's the big problem with Word 2008 and how can it be converted to use more than one character set? Don tell me to reinstall. I would like to see some Microsoft documentation that explains why Word 2008 has reverted to being lame with Chinese characters. MAC Office Word Discussions Windows XP