ActiveX Combobox displays wrong number of lines

I have a Combobox with the listrow set to 5 yet it displays three listrows.

Not only that but the range comprises five cells yet the drop down does not have the up/down arrow for scrolling so the bottom 2 can't be chosen.

If I'm pretty sure ActiveX controls are buggy if there is someone who can point me at something obvious then I'll be eternally grateful.

PS this Combobox used to refer to as the range that had a three cells and I also had the listrow property set to three, somehow the changes just don't seem to carry through although the data presented in the drop down is from the new range even though the drop down is the wrong length and also cannot access the bottom two members of the five member data set.

To cut a long story short.
The range the box refers to refers to another range
the information from that incorrectly referred range makes it into the ActiveX control.
The control seems to ignore its listrow property and doesn't make even scrolling an option to access further members of the data range.
sir plusSales ManagementAsked:
Who is Participating?
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.

sir plusSales ManagementAuthor Commented:
Okay I've solved it!
The listbox cannot refer to a range which is defined as referring to another named range.

It picks up the content of the range but not other parameters and somehow screws everything up.

If I have googled this like crazy and spent a day on it, this is repeatable and I will report to Microsoft.

Contrary to popular opinion I found that they do care and reporting this stuff results a fix for the next version or patch.

        With ComboBox2
        .ListFillRange = Range("gListReturnAir2").Address
        .Locked = False
        .ListRows = Range("gListReturnAir2").Rows.Count
        .Locked = True
    End With
And I could use this if I wanted to still referred to a defined name instead of an actual range on the sheet.

The following also works if you want to keep the listbox referring to a more meaningful named range:

Dim sNameRange As String
    sNameRange = Right(ThisWorkbook.Names("gListReturnAir2").RefersTo, Len(ThisWorkbook.Names("gListReturnAir2").RefersTo) - 1)
    With ComboBox2
        .ListFillRange = ThisWorkbook.Names(sNameRange).RefersTo
        .Locked = False
        .ListRows = Range("gListReturnAir2").Rows.Count
        .Locked = True
'        .Locked = bComboBoxLockedState
    End With

I will give the points to me on this one unless someone answered it before I hit the submit button on this post

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
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.