Error 380

azizrasul

Well-known Member
Joined
Jul 7, 2003
Messages
1,304
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I have a form upon which is a combo box. When I initialise the form, I have the following line

Code:
cboShow_CP.ListIndex = Sheets("Current").Range("Show_CP_Prem_Choice") - 1

I get the error "Could not set the ListIndex property, Invalid Property Value.

The value I get for Sheets("Current").Range("Show_CP_Prem_Choice") is 2. Sheets("Current").Range("Show_CP_Prem_Choice") are the following values i.e. Yes, No and Modular.

AG
10 Yes
11 No
12 Modular
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
When I hover over

Code:
cboShow_CP.ListIndex

I get -1.

The BoundColumn is 1, the ColumnCount is also 1, the RowSource is Show_CP_Prem a named range given above with the 3 values.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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