Problems Assigning A Range of Cells To A Combobox List Source

Ark68

Well-known Member
Joined
Mar 23, 2004
Messages
4,562
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
This line of code (in red) is causing me problems. It breaks with a "Could not set the List property. Invalid property array index." error as I try to assign a range of values as a list source for a combobox on my userform.

Rich (BB code):
Case Is = "League1 (OSA)"
            Stop
            Set nr_calibre = ws_lists.Range("G2:G2") 'rep
            Set nr_dvsion = ws_lists.Range("H139:H139") 'U21 M/W League 1
            t = 3
            bigandbad t '{frm_chg_3League}
            permit.cbx_calibre = "REP"
            permit.cbx_division = "U21 M/W League 1"
            permit.cbx_f2_fc.Enabled = True
            permit.cbx_f2_gl.Enabled = True
            permit.cbx_f2_fc.List = ws_lists.Range("U2:U19")
            permit.cbx_f2_fc.Value = "S1 - 91.5m x 61m"
            permit.cbx_f2_gl.List = ws_lists.Range("V2:V15")
            permit.cbx_f2_gl.Value = "S1 - 24'"

Thought of the problem and how to fix?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
It should be the range value:

VBA Code:
            permit.cbx_f2_fc.List = ws_lists.Range("U2:U19").Value
            permit.cbx_f2_fc.Value = "S1 - 91.5m x 61m"
            permit.cbx_f2_gl.List = ws_lists.Range("V2:V15").Value
 
Upvote 0
I confirmed that @Akuini has the correct solution but I am perplexed, because Value is the default property of Range. I don't know why VBA raises an error without it.
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,025
Members
448,543
Latest member
MartinLarkin

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