I'm using a scrollbar to allow a user to scroll through a scrolling chart
(courtesy of Andy Pope). I also have a code snippet that updates the
"Object.Max" property of the scrollbar when additional rows of data are
added.
ActiveSheet.Shapes("ScrollBar1").Select
With Selection
' .Object.Max = "last row" - "first row - 1 " - "offset"
.Object.Max = LastRowArray(11, 1) - 6 - ScrlngChrtOffset
End With
The question I have is, is there a property (something like ScrollRight) I
can use to set the scrollbar to the rightmost positon so that the user does
not have to physically move the scrollbar slider to the maxium right position
to see the latest data?
Thanks in advance,
Raul
K Dales - 21 Feb 2006 17:54 GMT
To go all the way to the right:
ActiveSheet.ScrollBar1.Value = ActiveSheet.ScrollBar1.Max

Signature
- K Dales
> I'm using a scrollbar to allow a user to scroll through a scrolling chart
> (courtesy of Andy Pope). I also have a code snippet that updates the
[quoted text clipped - 14 lines]
> Thanks in advance,
> Raul
Raul - 21 Feb 2006 20:30 GMT
This did the trick.
Thanks a bunch,
Raul
> To go all the way to the right:
> ActiveSheet.ScrollBar1.Value = ActiveSheet.ScrollBar1.Max
[quoted text clipped - 17 lines]
> > Thanks in advance,
> > Raul