Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default combobx help!

I have a range in Sheet1 A1:A10. I need to populate the
drop down box of a combo box with the values in Sheet1
A1:A10 that are not equal to "no".
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default combobx help!

Picric,

I would write some code to enumerate the elements and test them all
individually, something like this:

Dim X as INT

For X = 1 to 10

If Thisworkbook.Worksheets("Sheet1").Range("A" & X).value = "No" then _
ComboBox1.additem Thisworkbook.Worksheets("Sheet1").Range("A" & X).value

Next X


Or you could probably create a collection element of cells and do something
like

With Cells in Collection (or range)

if .value = "No" then... etc.

End with


Hope that's a good start :)

-Mike Mertes

"picric" wrote in message
...
I have a range in Sheet1 A1:A10. I need to populate the
drop down box of a combo box with the values in Sheet1
A1:A10 that are not equal to "no".



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"