超行数???
没听过超行数的问题,只听过超行长的问题。
Dim s1 As String Dim s2 As String Dim s3 As String Dim sL As Long Dim i As Long Dim fj() As String s1 = Combo1.Text & "," & Combo2.Text sL = Len(s1) Open "data.txt" For Input As #1 Do While EOF(1) Line Input #1, s2 s3 = Left(s2, sL) If s3 = s1 Then fj = Split(s2, ",") For i = 0 To 8 y(i).Caption = fj(i + 2) Next i Exit Do End If Close #1