Pookiemeister
Well-known Member
- Joined
- Jan 6, 2012
- Messages
- 626
- Office Version
- 365
- 2010
- Platform
- Windows
The code below works, however, I would like the code to find and add all the items dynamically.
I tried to make the code below dynamic but I get a "compile error: Method or data member not found".
When I select debug the highlighted code is:
Followed by:
Thank You
Code:
Private Sub ComboBox1_Enter()
If cmbSDPFLine.Value = "Line 1" Then
With Me.ComboBox1
.Clear
.List = WorksheetFunction.Transpose(Sheets("Sheet1").Range("A3:A10").Value)
End With
End If
End Sub
I tried to make the code below dynamic but I get a "compile error: Method or data member not found".
Code:
Private Sub ComboBox1_Enter()
If cmbSDPFLine.Value = "Line 1" Then
With Me.ComboBox1
.Clear
.List = .Range("A3", .Range("A" & Rows.Count).End(xlUp).Offset)
End With
End If
End Sub
Code:
.Range
Code:
("A" & Rows.Count).End(xlUp))
Thank You