excel¦hÓ¶q´ú¥¿©¶ªi«¬¦Û°Ê¤Á¤À
- ©«¤l
- 154
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 200
- ÂI¦W
- 2
- §@·~¨t²Î
- windwos 7
- ³nÅ骩¥»
- 64bit
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2017-5-29
- ³Ì«áµn¿ý
- 2025-6-27
|
¦^´_ 1# m06o2 - Sub test()
-
- Dim LastRow As Long
- Sheets("¤u§@ªí2").Cells.Clear
- With Sheets("¤u§@ªí1")
- LastRow = .Range("A1").CurrentRegion.Rows.Count
- rr = 1
- cc = 1
- For i = 1 To LastRow
- Sheets("¤u§@ªí2").Cells(rr, cc) = .Cells(i, 1)
- If i = LastRow Then Exit For
- rr = rr + 1
- If Sgn(0 - .Cells(i, 1)) + Sgn(0 - .Cells(i + 1, 1)) = 0 Then
- aa = aa + 1
- If aa Mod 2 = 1 Then
- rr = 1
- cc = cc + 1
- End If
- End If
- Next i
- End With
- End Sub
½Æ»s¥N½X
|
|
|
|
|
|
|