- ©«¤l
- 561
- ¥DÃD
- 160
- ºëµØ
- 0
- ¿n¤À
- 725
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS
- ³nÅ骩¥»
- xp
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2014-9-10
- ³Ì«áµn¿ý
- 2024-8-7
|
Sub AA()
Sheet2.[A35536].ClearContents
Sheet3.[A35536].ClearContents
Sheet4.[A35536].ClearContents
Sheet5.[A35536].ClearContents
X = Sheet1.[A65536].End(xlUp).Row
Y1 = Sheet2.[A65536].End(xlUp).Row
Y2 = Sheet2.[A65536].End(xlUp).Row
Y3 = Sheet2.[A65536].End(xlUp).Row
Y4 = Sheet2.[A65536].End(xlUp).Row
For M = 2 To X
If Mid(Sheet1.Cells(M, 1), 3, 3) = "150" Then
Sheet2.Cells(Y1 + 2, 1).Resize(, 4).Value = Sheet1.Cells(M, 1).Resize(, 4).Value
Y1 = Y1 + 1
ElseIf Mid(Sheet1.Cells(M, 1), 3, 3) = "151" Then
Sheet3.Cells(Y2 + 2, 1).Resize(, 4).Value = Sheet1.Cells(M, 1).Resize(, 4).Value
Y2 = Y2 + 1
ElseIf Mid(Sheet1.Cells(M, 1), 3, 3) = "152" Then
Sheet4.Cells(Y3 + 2, 1).Resize(, 4).Value = Sheet1.Cells(M, 1).Resize(, 4).Value
Y3 = Y3 + 1
ElseIf Mid(Sheet1.Cells(M, 1), 3, 3) = "153" Then
Sheet5.Cells(Y4 + 2, 1).Resize(, 4).Value = Sheet1.Cells(M, 1).Resize(, 4).Value
Y4 = Y4 + 1
End If
Next
End Sub |
|