Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Setting the scrollbar positon

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Setting the scrollbar positon

To go all the way to the right:
ActiveSheet.ScrollBar1.Value = ActiveSheet.ScrollBar1.Max

--
- K Dales


"Raul" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Setting the scrollbar positon

This did the trick.

Thanks a bunch,
Raul

"K Dales" wrote:

To go all the way to the right:
ActiveSheet.ScrollBar1.Value = ActiveSheet.ScrollBar1.Max

--
- K Dales


"Raul" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
chart in a 2007 worksheet changes positon lesperance Charts and Charting in Excel 0 April 6th 10 05:38 PM
Scrollbar Help kay Charts and Charting in Excel 1 October 29th 08 05:35 PM
Scrollbar help [email protected] Excel Discussion (Misc queries) 1 January 19th 07 10:48 PM
scrollbar reslut makes another scrollbar to show Patrik Excel Discussion (Misc queries) 0 April 18th 05 03:11 PM
Scrollbar junx13[_11_] Excel Programming 0 September 20th 04 08:03 AM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"