Auto Scrolling with groups of rows

ToddF

New Member
Joined
May 10, 2011
Messages
2
I would like to create an automatic scrolling Excel sheet page to display on our monitor with a twist. I want 5 rows to scroll together for example 1-5 all leave the page at the same time and 6-10 take the place. I need the 5 rows grouped together. I have the following code I was able to modify and use to meet the speed and the range of my information. However, I have not been able to figure out how to group the 5 lines to move as one.
I did not create this macro but it seams to work partially for my needs. If there is a better way you will not offend me on contrary you would make me very hapy if you could provide a code that would do what i am looking for.

Rich (BB code):
Sub Scroll()
Rich (BB code):
Rich (BB code):
Rich (BB code):
Rich (BB code):
Dim r As Range, cell As Range, ii As Long, i As Long
Range("J1").ClearContents
Range("J1").Activate
 
Set r = Range("A5:A50")
bStop = False
Do
DoEvents
For Each cell In r
DoEvents
ActiveWindow.ScrollRow = cell.Row
DoEvents
Application.ScreenUpdating = True
DoEvents
For i = 1 To 10000 '< make this number bigger if you need to slow the scroll down
DoEvents
If ii > 10000 Then
ii = 0
Else
ii = ii + 1
End If
If Not IsEmpty(Range("J1")) Then Exit Sub
DoEvents
Next
DoEvents
Next
DoEvents
Loop While IsEmpty(Range("J1")) And bStop = False
 
End Sub
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
Last edited by a moderator:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
update on what am I wanting to do...

If it would be easier I could reformat my information to be across difrent sheets. In this case I would need to AutoScroll the sheets in a workbook.

If someone could give guidence (who am i kidding) a maco for me to use that would be great.

Thank you for your assistance on this issue
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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