ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

excel¦h­Ó¶q´ú¥¿©¶ªi«¬¦Û°Ê¤Á¤À

excel¦h­Ó¶q´ú¥¿©¶ªi«¬¦Û°Ê¤Á¤À

¨Ï¥Î¶q´ú³]³Æ¶q´ú¤@ª«Åé°µ¥¿©¶¹B°Ê«áªº¶q´ú­È¡A¦p¤U­±ªþ¥ótest.xlsx¡A
¬O§_¦³¤èªk¯à¦Û°Ê±N¥¿©¶¸ê®Æ³æ¿W°µ¤Á³Î¡A¹º¤À¦¨¹Ï­±¤W­±¬õÂIªº°Ï¶¡¡A¤À§O±ø¦C¦¡¦¨¤@­Ó·sªº¤u§@¦Cªí¡C






test.zip (41.05 KB)
m06o2~~~~

¦^´_ 1# m06o2
  1. Sub test()
  2.    
  3. Dim LastRow As Long
  4. Sheets("¤u§@ªí2").Cells.Clear
  5. With Sheets("¤u§@ªí1")
  6.     LastRow = .Range("A1").CurrentRegion.Rows.Count
  7.     rr = 1
  8.     cc = 1
  9.     For i = 1 To LastRow
  10.         Sheets("¤u§@ªí2").Cells(rr, cc) = .Cells(i, 1)
  11.         If i = LastRow Then Exit For
  12.         rr = rr + 1
  13.         If Sgn(0 - .Cells(i, 1)) + Sgn(0 - .Cells(i + 1, 1)) = 0 Then
  14.             aa = aa + 1
  15.             If aa Mod 2 = 1 Then
  16.             rr = 1
  17.             cc = cc + 1
  18.             End If
  19.         End If
  20.     Next i

  21. End With

  22. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# quickfixer


    ¤w´ú¸Õ¦¨¥\!!!!
m06o2~~~~

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD