While in the "Program Summary Worksheet, it is possible for the screen to me
moved by the following code: (or by using the scoll bar on the right...)
'-*******************************************
' [ LOOP (12 Rows)] Loop each set of 12 Rows x Number of Races on the
"Program Data Input" Worksheet
'-*******************************************
src = srcProgramSummaryWs.Range("B3").Value 'Get first Race Number
i = 3 'start row in "Input Data Ws" to test for Race Nunber
j = 3 'row number in "Betting Ws"
Do Until src = "" 'loop until no more Races detected
'-------------------------------------------
' When "Personal Picks" are Clicked
' [N], [O], [P], or [Q] Top Right of Race
' Scroll This Race to Top of Screen
'-------------------------------------------
'When the "Personal Picks" of any race is Clicked(in Rows N, O, P, or Q),
'then Scoll that race to the Top
If Not Intersect(Target, Range("N" & j & ":Q" & j)) Is Nothing Then _
ActiveWindow.ScrollRow = Target.Row
j = j + 12 'add for next set of (12) rows and loop
'Look for the existence of a Race number (no race number will end loop)
src = srcProgramSummaryWs.Cells(i, 2).Value
Loop
'-*******************************************
' [ END LOOP (12 Rows)]
'-*******************************************
Dave Peterson said:
I don't understand what you mean by target.address to scroll down.
But it did work for me in my tests.