ComboBox only shows 3 items on the list.

katydid56

New Member
Joined
Mar 18, 2017
Messages
13
Hello everyone,

I have a ComboBox named cboEmp1. It is in a frame on a UserForm. The list to use to populate the combo box is located in column A of the worksheet 'Reference'
Here is my code. (I don't think I entered it here correctly )

Private Sub PopulateEmployee()
With Worksheets("Reference")
Me.cboEmp1.List = .Cells(2, 1).Resize(.Cells(.Rows.Count, 2).End(xlUp).Row - 1, 1).Value
End With
End Sub

No matter how many entries are on the list only the first 3 show up in the ComboBox.
Any help is appreciated.

Thanks
katydid
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,
just looking at your code, try changing the column number shown to column A (1) & see if this resolves your issue

Rich (BB code):
Me.cboEmp1.List = .Cells(2, 1).Resize(.Cells(.Rows.Count, 1).End(xlUp).Row - 1, 1).Value

Dave
 
Upvote 0
Well I thought that worked but now I only get first 4 items in the list?
Sorry, I need to figure out what is happening before asking for help. The first column is reading correctly but others are not. They are reading all the items in the list but now I am getting blank at the bottom
 
Upvote 0
'This sub will pull the disposition choices in column C of worksheet Reference

Private Sub PopulateDisposition()
With Worksheets("Reference")
Me.cboDisp.List = .Cells(2, 3).Resize(.Cells(.Rows.Count, 1).End(xlUp).Row - 1, 1).Value
End With
End Sub


It works fine except I get a lot of blanks showing up at the bottom when I click the dropdown. Not sure how to fix that?
THANK YOU!
 
Upvote 0
Hi

Rich (BB code):
Private Sub PopulateDisposition()
With Worksheets("Reference")
Me.cboDisp.List = .Cells(2, 1).Resize(.Cells(.Rows.Count, 1).End(xlUp).Row - 1, 1).Value
End With
End Sub

From your original post, looks like you have changed the Column number to 3 - change it back to 1 as shown & see if resolves your issue

Dave
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,937
Members
449,094
Latest member
teemeren

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