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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

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