Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-03-2015, 12:40 AM
macropod's Avatar
macropod macropod is offline Scroll through pages on loop Windows 7 64bit Scroll through pages on loop Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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
 

Tags
scrolling



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:55 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