How to get max number of items in a slicer list box

I've been given a workbook that has a few slicer controls (They look like slicer controls) on the first sheet.  I am not familiar with slicer.  They are both list boxes and the two lists I'm interested in are the state selection list and the county selection list.  When I select a state in the state list, it brings up all of the counties in that state in the county list.  Then I select a county and the screen updates with that county information.  I need to write a program that loops through all states and all counties.  The states and counties are listed on another worksheet and have sequential numbers associated with them.  So there are 50 possible states and any number of counties per state.  How can I get the maxiumum number of counties for that state so I can use that number in my loop?  When I right click the state control it tells me where the state values are coming from (Another worksheet -- Cell Link "E5").  Same with counties.  If I query the county value in the immediate window it only returns the value of the county.  I need to access the list of counties for that state so that I can loop through them.  Any ideas?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NorieAnalyst Assistant Commented:
I've never heard of a slicer control.

I was going to suggest you might have meant slider controls but your further description involving list sounds more like listboxes or comboboxes.

If they are comboboxes/listboxes when you right click there should also be a property called Input Range.

The range there will be where the list you want will be - the Cel Link property is a cell on the worksheet where the value selected goes.

The Cell Link is probably on the same worksheet as the control, while the Input Range, with the list(s) you want, will probably be on another sheet.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Is this a one time event, or something that will need to be able to be done programically for future workbooks?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.