Good morning all,
Can someone please explain to me why it gives me an error in this code
Code
Private Sub ListBox1_Click()
Dim say As Long, a As Byte
For a = 0 To 40
Controls("textbox" & a + 1) = ListBox1.Column(a)
Next
Sheets("Data").Range("A:A").Find(ListBox1.Text).Activate
say = ActiveCell.row
Sheets("Data").Range("A" & say & ":AO" & say).Select
TotNum = ListBox1.ListIndex + 1
End Sub
Display More
and particularly this line
it used to work properly....?