Hello all,
I got two comboboxes in my worksheet names cmbDepartment and cmbFilter.
When a department is selected you can filter the department with cmbFilter.
To fill cmbDepartment i filled in the ListFillRange. To populate cmbFilter i use the following code:
I hope this is clear.
Now my question:
When i press cmbFilter the values in the dropdown exceed the width of the dropdown area.
I would like that the dropdown area auto fits the longest text in it without changing the actual combobox filter.
Someone knows how to accomplish this?
I got two comboboxes in my worksheet names cmbDepartment and cmbFilter.
When a department is selected you can filter the department with cmbFilter.
To fill cmbDepartment i filled in the ListFillRange. To populate cmbFilter i use the following code:
Code:
Private Sub cmbDepartment_Change()Me.cmbFilter.ListFillRange = Me.cmbDepartment
End Sub
I hope this is clear.
Now my question:
When i press cmbFilter the values in the dropdown exceed the width of the dropdown area.
I would like that the dropdown area auto fits the longest text in it without changing the actual combobox filter.
Someone knows how to accomplish this?