|
- Sub tt()
- Dim ar, i%, m%, n%, s
- With Sheets("所有比赛")
- m = .[a1].End(xlToRight).Column
- .[a1].Resize(1, m).Copy Sheets("新表").[a1].Resize(1, m)
- Set ar = .[a1].Resize(.[a1].End(4).Row - 1, m)
- For i = 2 To UBound(ar.Value)
- If ar(i, 4).Interior.ColorIndex = 33 And ar(i, 4).Value <> "完" Then
- If ar(i, 4).Value <> 0 Then
- Set s = ar(i, 1).Resize(1, m)
- With Sheets("新表")
- n = .[a10000].End(xlUp).Row + 1
- .Cells(n, 1).Resize(1, m) = s.Value
- End With
- Set s = Nothing
- End If
- End If
- Next i
- Set ar = Nothing
- End With
- End Sub
复制代码 |
|