ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   combobox rowsource (https://www.excelbanter.com/excel-programming/309331-combobox-rowsource.html)

newbie

combobox rowsource
 
I am trying to use a range that sometimes has blank cells in it, but I don't
want those blank cells to appear on the drop down box.

Is there an easy way of doing this?

TIA

Tom Ogilvy

combobox rowsource
 
Use formulas to build a range that doesn't have blank cells and use that as
a source for your data. Use code to build a range that doesnt' have blank
cells and use that as a source for your data.

Any other solution would require knowing what type of combobox
Control Toolbox Toolbar/ActiveX
Forms Toolbar
Data Validation

for the first two, you would then loop down your cells and use AddItem to
add those that don't contain blanks to the list.

--
Regards,
Tom Ogilvy



"Newbie" wrote in message
...
I am trying to use a range that sometimes has blank cells in it, but I

don't
want those blank cells to appear on the drop down box.

Is there an easy way of doing this?

TIA





All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com