View Single Post
 
Old 12-03-2015, 12:40 AM
macropod's Avatar
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,356
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use something like:
Code:
Sub Demo()
Dim Rng As Range, Start
Const Pause As Long = 2    ' Set duration.
Recycle:
With ActiveDocument.Range
  Set Rng = .Characters.First
  Do
    Start = Timer
    Do While Timer < Start + Pause
      DoEvents    ' Yield to other processes.
    Loop
    Set Rng = Rng.GoTo(What:=wdGoToBookmark, Name:="\Line")
    If Rng.End = .End - 1 Then GoTo Recycle
    With Rng
      .Collapse wdCollapseEnd
      .Select
    End With
  Loop
End With
End Sub
When the macro finishes scrolling through the document, it scrolls back to the top again and starts over.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote