Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2015, 05:25 AM
gmaxey gmaxey is offline Scroll through pages on loop Windows 7 32bit Scroll through pages on loop Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Paul,

Here your code moved down the page lines but only displays the cursor at the start of the line. I'm not sure if the line should be selected or not. If so, this alteration of your code does that.



Code:
Sub Demo()
Dim Rng As Range, Start
Const Pause As Long = 2#
Recycle:
With ActiveDocument.Range
  Set Rng = .Characters.First
  
  Do While Rng.End < .End - 1
    Start = Timer
    Do While Timer < Start + Pause
      DoEvents    ' Yield to other processes.
      Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\Line")
      Rng.Select
    Loop
    If Rng.End = .End - 1 Then GoTo Recycle
    Rng.Collapse wdCollapseEnd
  Loop
End With
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Tags
scrolling

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scroll through pages on loop Advanced page numbering: section pages in header, document pages in footer Albus Word 12 12-12-2014 01:36 PM
Page does not actively scroll with click, hold and drag on scroll-bar jbax Word 1 05-09-2013 07:16 PM
Scroll through pages on loop parallel text on even pages and on odd pages markpete Word 3 11-16-2012 03:10 AM
Scroll through pages on loop Forcing Chapter Start Pages on Odd Pages SQLUSA Word 3 08-16-2012 02:40 PM
Scroll Box john_prince Word 0 02-01-2011 03:22 PM

Other Forums: Access Forums

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


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