Arrgh!,
Last code for this complex thing.
My quandary is using the TextBox (SPR_IDTB) from a userform to populate a ListBox on the userform.
If the matching ID (SPR_IDTB) is found, pull the value in the same row from column A and from Column J. End after searching 1 worksheet. TextBox value is in row B.
Best guess at this point:
DThib
Last code for this complex thing.
My quandary is using the TextBox (SPR_IDTB) from a userform to populate a ListBox on the userform.
If the matching ID (SPR_IDTB) is found, pull the value in the same row from column A and from Column J. End after searching 1 worksheet. TextBox value is in row B.
Best guess at this point:
Code:
Sub Reslcomm_TB_Change()
Dim c As Range
Alcomm_LB.Clear
For Each c In Sheets("Assigned").Range("B:B").End(xlUp)
If c.Value = SPR_IDTB.Value Then
Alcomm_LB.AddItem c.Offset(, 12).Value
Alcomm_LB.AddItem c.Offset(, -1).Value
Alcomm_LB.List(Alcomm_LB.ListCount - 1, 1) = c.Offset(, 1).Value
End If
Next
End Sub
Last edited: