Clarus Dignus
New Member
- Joined
- Apr 1, 2014
- Messages
- 4
I'm trying to modify the following working code:
Instead of using a named range, I need to target a column. I've tried changing this line:
...to this:
...but I'm receiving an error (object doesn't support this property/method).
Any pointers on how I should select the column?
Code:
'Populate drop-down list (combo box) from range...
Dim range_b As Range
For Each range_b In Worksheets("2.1 Clients").Range("ClientList")
With Me.cs_ClientName1
.AddItem range_b.Value
.List(.ListCount - 1, 1) = range_b.Offset(0, 1).Value
End With
Next range_b
End Sub
Instead of using a named range, I need to target a column. I've tried changing this line:
Code:
For Each range_b In Worksheets("2.1 Clients").Range("ClientList")
...to this:
Code:
For Each range_b In Worksheets("2.1 Clients").Column(4)
...but I'm receiving an error (object doesn't support this property/method).
Any pointers on how I should select the column?
Last edited: