Active X Scroll Bar max value

hallingh

Well-known Member
Joined
Sep 11, 2010
Messages
769
I put in a scroll bar on a dynamic chart yesterday, which I thought was working fine but I realized today still needs some tweaking. The scroll bar is scrolling down values that are referenced from another sheet. The values are part of a named range, which will be added to as time goes on. Currently, I just have the max value of the scroll bar set to the number of entries in the named range. This works fine now, but as values are added will the max value of the scroll bar also have to be changed?

If so, is there a way to automatically set the scroll bar max value to equal the number of entries in the named range? Any help would be greatly appreciated.

Thanks!

Hank
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Without testing it here, possibly something along the lines of:-
Code:
[I]scrollbarname[/I].Max = Range("[I]rangename[/I]").Rows.Count
 
Upvote 0

Forum statistics

Threads
1,214,870
Messages
6,122,019
Members
449,060
Latest member
LinusJE

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