T
Todd Huttenstine
ComboBox1.Value = "Please Select"
Dim rng As Range
Dim Ndx As Long
With ComboBox1
.ColumnCount = 1
For Each rng In Workbooks("2004 Renewals New.xls")
_
.Worksheets("Renewals WOW 2004").Range("D1:BO1")
If rng.Value <> "" Then
.AddItem rng.Value
End If
Next rng
End With
The above code adds items in the specified range to
combobox1 only if the cell does not equal "". I would
also like it to not add the items that have MTD somehwere
in the value.
For example lets say say one of the cells in the range
said "Oct MTD". If this was the case I would want the
code to not add this because it contains MTD in the value.
Thank you
Todd Huttenstine
Dim rng As Range
Dim Ndx As Long
With ComboBox1
.ColumnCount = 1
For Each rng In Workbooks("2004 Renewals New.xls")
_
.Worksheets("Renewals WOW 2004").Range("D1:BO1")
If rng.Value <> "" Then
.AddItem rng.Value
End If
Next rng
End With
The above code adds items in the specified range to
combobox1 only if the cell does not equal "". I would
also like it to not add the items that have MTD somehwere
in the value.
For example lets say say one of the cells in the range
said "Oct MTD". If this was the case I would want the
code to not add this because it contains MTD in the value.
Thank you
Todd Huttenstine