sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,404
- Office Version
- 2016
- Platform
- Windows
I have a Listbox on a Userform that is loaded like this;
I've hidden all but the first column of data because that's all I need to see but the values are required elsewhere, hence I need to load all of the columns.
What I need to do is find the value of Texbox2 within the 2nd column of the Listbox values, (column B on the worksheet) and then select that item.
Can anyone help?
Code:
70 With Me.ListBox1
.ColumnCount = 11
.ColumnHeads = False
.ColumnWidths = "85;0;0;0;0;0;0;0;0;0;0"
.RowSource = Sheet7.Range("A2:K" & LastRow).Address(, , , True)
.IntegralHeight = True
End With
I've hidden all but the first column of data because that's all I need to see but the values are required elsewhere, hence I need to load all of the columns.
What I need to do is find the value of Texbox2 within the 2nd column of the Listbox values, (column B on the worksheet) and then select that item.
Can anyone help?