![]() |
#4
|
|||
|
|||
![]()
I'm not sure I follow what you're doing, and definitely don't follow when it's being done.
Using the _Change() event will fire the FillCombobox procedure every time any character is typed into the combo box. I'd think you would want the drop downs to populate before entering anything. Perhaps using the _GotFocus event instead of _Change. Code:
Private Sub ComboBox1_GotFocus() Call FillCombobox("List", "A", Me.ComboBox1) End Sub Code:
Sub FillCombobox(WSName As String, ColLtr As String, CBox As ComboBox) Dim LastRow As Long Set ws = ActiveWorkbook.Worksheets("List") With ws LastRow = .Cells(.Rows.Count, ColLtr).End(xlUp).Row CBox.List = .Range(ColLtr & "3:" & ColLtr & LastRow).Value End With End Sub |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Stewie840 | Word VBA | 14 | 12-17-2015 10:13 PM |
![]() |
Deepa Shrestha | Word VBA | 1 | 09-29-2013 09:30 PM |
![]() |
billybeach | Outlook | 2 | 04-27-2013 04:38 AM |
![]() |
ll4u76 | Word VBA | 1 | 04-13-2012 03:37 AM |
![]() |
Billy_McSkintos | Word VBA | 1 | 09-13-2011 05:50 AM |