Av8tordude
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 1,075
- Office Version
- 2019
- Platform
- Windows
I want to add items to a combo box however I want to restrict the range to A3:A12. Also, I notice in the current code, when I click the drop down arrow, it displays the empty ranges. Is there a way to not show these ranges if the cells are empty? Can someone assist with this task. Thank you kindly.
Code:
Set rng = Range("A3", Range("A3").End(xlDown))For Each cell In rng.Cells
cbName.AddItem cell.Value
Next cell