Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

Setting the scrollbar positon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raul - 21 Feb 2006 16:09 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.