不是太长啊,才二十几行。 那给我解释一下这段吧 Sub kk() Dim i As Long, r As Long, r1 As Long, j As Integer, k As Integer, ra As Range, F As Object Set F = Application.WorksheetFunction With Sheets("评分标准") k = .Cells(2, 256).End(xlToLeft).Column r = .Cells(65536, 1).End(xlUp).Row r1 = Cells(65536, 1).End(xlUp).Row Range(Cells(2, 8), Cells(r1, 8)).ClearContents For i = 2 To r1 t = Cells(i, 2) & Cells(i, 5) c = F.Match(t, .Range(.Cells(2, 1), .Cells(2, 256)), 0) t = Left(Cells(i, 6), Len(Cells(i, 6)) - 1) Do If t = CStr(.Cells(3, c)) Then Exit Do End If |