Combo box using multiple table lists

jarhead58

Active Member
Joined
Sep 21, 2017
Messages
352
Office Version
  1. 2021
Platform
  1. Windows
Hello all!

I have 2 combo boxes, first one has a choice of 3 people. When one of them is chosen, I want the 2nd combo box to list items from that persons table/cell range. Lets say I chose 1 of a,b, or c in the first box.
Each choice has their own list to be used. A uses table choice1, B choice2 and so on. I tried using vba to just assign the rowsource after the "Change" in the first box but it doesn't work. What am I missing?
I was using:
VBA Code:
combobox2.rowsource = "choice1"
Using choice2 and choice3 as needed. TIA
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
How about
VBA Code:
ComboBox2.RowSource = Range("Choice1").Address
 
Upvote 0
In what way isn't it working?
 
Upvote 0
Is Choice1 a range name? If so how did you create it?
 
Upvote 0
Is Choice1 a range name? If so how did you create it?
That was just an example word. My real combobox is called Bills. Named it in the properties. The dropdown works when I point it to a range in the properties-Rowsource

I was using
VBA Code:
Bills.Rowsource=Range("JLookup").address
which is where the list is located; JLookup being the table.
 
Upvote 0
I'm lost Choice1 should be a named range, not the name of a combobox.
 
Upvote 0
That is how I saw the formula while researching changing the rowsource property in vba
 
Upvote 0
What is Choice1? a named range or the name of a combobox?
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,699
Members
449,048
Latest member
81jamesacct

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