Sub aa()Dim a As IntegerDim b As IntegerDim i As IntegerDim e As StringDim f As StringAScreenUpdating = FalseADisplayAlerts = Falsec = [a65536]End(xlUp)RowFor i = 2 To c - 1e = Cells(i, 1)f = Cells(i + 1, 1)a =right(e, 2)b = right(f, 2)If a > b ThenRange(Cells(i, 1), Cells(i, 2))SelectSCopySheets("表2")Selectd = [a65536]End(xlUp)RowCells(d + 1, 1)SelectActiveSPaste Sheets("表1")SelectEnd IfNextEnd Sub初学者 请查收 不行的话 在HI我