Excel Auto Scrolling? [Pictures in Thread]

OrzoTV

New Member
Joined
Jul 29, 2014
Messages
2
Alright, I'll try to explain what I need as best I can.

I have Microsoft Excel 2010 and I am trying to make it so that the excel document will automatically scroll down 1 row say every 10 seconds, once it reaches the end it goes back to row 2 and repeats the process.

I have fixed row 1 so that it stays displayed at all times, and have the document placed so that it shows 5 rows of information, but I have 13 rows in total. I want it to scroll down 1 row at a time and finish on 13 and return to 2. Then repeat.

24f355658e.png


I have hidden all the rows below row 13.

4aaa703600.png


Does anyone know a good way to do this?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Install this as a standard module and run StartScroll with Sheet1 active.
Code:
Public runWhen As Date
Sub StartScroll()
runWhen = Now + TimeSerial(0, 0, 10)
Application.OnTime runWhen, "StartScroll", , True
If ActiveWindow.ScrollRow <= 12 Then
    ActiveWindow.ScrollRow = ActiveWindow.ScrollRow + 1
Else
    ActiveWindow.ScrollRow = 2
End If
End Sub
Sub StopScroll()
On Error Resume Next
Application.OnTime runWhen, "StartScroll", , False
ActiveWindow.ScrollRow = 2
End Sub
 
Upvote 0
Install this as a standard module and run StartScroll with Sheet1 active.
Code:
Public runWhen As Date
Sub StartScroll()
runWhen = Now + TimeSerial(0, 0, 10)
Application.OnTime runWhen, "StartScroll", , True
If ActiveWindow.ScrollRow <= 12 Then
    ActiveWindow.ScrollRow = ActiveWindow.ScrollRow + 1
Else
    ActiveWindow.ScrollRow = 2
End If
End Sub
Sub StopScroll()
On Error Resume Next
Application.OnTime runWhen, "StartScroll", , False
ActiveWindow.ScrollRow = 2
End Sub

Works perfectly!

Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,808
Members
448,990
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top