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

­«½Æ©Êªº¾ã²z~½Ð¦U¦ì°ª¤âÀ°À°¦£!!·PÁÂ!!

­«½Æ©Êªº¾ã²z~½Ð¦U¦ì°ª¤âÀ°À°¦£!!·PÁÂ!!

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-9-9 05:21 ½s¿è

ÀÉ®×.rar (5.73 KB)

½Ð°Ý¦U¦ì°ª¤â¡A
­n¦p¦ó³]©w¤~¯à§â Àɮ׸̪º¤u§@ªí1(­ì¥»¸ê®Æ)Åܦ¨¤u§@ªí2(¾ã²z«áªº¸ê®Æ)

¦]¬°¸ê®Æ«Ü¦h¡A·Q­n¾ã²z¡A¦ý¥Ø«e¥u¥Î½Æ»s¶K¤W¡A
¥[¤W¤£¤Ó·|¸ÑÄÀ¡A©Ò¥Hª½±µªþ¤WÀɮסA½Ð¦U¦ì°ª¤âÀ°¦£!!

·PÁ¦U¦ì¤j¤j!!!

¶Ç²Î¤èªk¡A³t«×¤£§Ö¡A¦ý®e©öÀ´¡G
  1. Sub TEST()
  2. Dim xR As Range, xRow As Range, xA As Range, M%, N&
  3. [¾ã²z«á¸ê®Æ!3:60000].ClearContents
  4. Application.ScreenUpdating = False
  5. ¡@
  6. For Each xR In Sheets("­ì¥»¸ê®Æ").UsedRange.Columns(1).Cells
  7. ¡@'¢ÏÄ榳¡e¢°¢±¦ì¼Æ¡f½s¸¹®É
  8. ¡@If xR Like String(12, "#") Then
  9. ¡@¡@Set xRow = xR.Resize(1, 12)¡@ '©w¦ì¨Cµ§­º¦C¸ê®Æ
  10. ¡@¡@Set xA = [¾ã²z«á¸ê®Æ!A65536].End(xlUp)(2) ¡@ '¨ú±o¹w­p¶ñ¤J¦ì¸m
  11. ¡@¡@If xA.Row > 3 Then Set xA = xA(2) ¡@ '²Ä¢±µ§¥H«á¡AªÅ¤@¦æ
  12. ¡@¡@M = 1: N = 0: GoTo 101¡@  '¼Ð°O¡Aª½±µ¸õ¦Ü¤U¤@¦C
  13. ¡@End If
  14. ¡@
  15. ¡@'¶ñ¤J¥k¤è¸ê®Æ
  16. ¡@If M = 1 Then N = N + 1:  xA(N, 13).Resize(1, 11) = xR(1, 2).Resize(1, 11).Value
  17. ¡@
  18. ¡@'¶ñ¤J¥ª¤è¸ê®Æ
  19. ¡@If (xR(2) <> "" Or xR(2, 2) = "") And N > 0 Then xA.Resize(N, 12) = xRow.Value: M = 0: N = 0
  20. 101: Next
  21. End Sub
½Æ»s¥N½X
°Ñ¦Òªþ¥ó¡G
ÀÉ®×v01.rar (13.39 KB)
¡@

TOP

¦^´_ 2# ­ã´£³¡ªL


    ·PÁª©¥D¤j¤jªº¦^ÂÐ
¦ý¬O§Ú¥Ø«e¿n¤À¤£°÷¡AµLªk¤U¸ü§A¤W¶ÇªºÀɮסA
ÁÙ¬Oª©¥D¤j¤j¯à±H¨ì¥»¤Hªº«H½c¶Ü?

TOP

¥»©«³Ì«á¥Ñ ­ã´£³¡ªL ©ó 2015-9-9 22:19 ½s¿è

¦^´_ 3# hamj3113

Åv©y´£¨Ñ¥t¤@¤U¸ü§}¡]³o¤w»Pª©³W¤£²Å¡A¤U¦¸¥i¤£¦æ¡^¡G
http://www.funp.net/183625

¶i¨Ó½×¾Â¤@¦~¦h¡A©|¥BµLªk¤U¸üªþÀÉ¡I^^
«Øij¦h¥[ÂI¤O¡Aexcel¦b¾³õ¤]¬O¼sªxÀ³¥Î¡A±o¦n¦n§Q¥Î¦¹½×¾Â¡]¦h°Ñ»P°Q½×©Îµo°ÝÃD¬Ò¥i¡^¡A´£¤É¹ê¤O¡I
¦h¬Ý¬Ý¨ä¥¦©«¤l¤]¤£¿ù¡A¥i¼W¥[excelª¾ÃÑ¡A¤d¸U¤£­n¦³°ÝÃD¤~¨Óµo°Ý¡A¦³¸Ñµª´N¶]¡A
¥»½×¾Â¬O¥xÆWµ}¦³ªºexcel±Mªù¥æ¬y¯¸¡A»Ý­n¤j®aªº¤ä«ù¡]§Ú­Ì¤]¬O³o¼Ë¾Ç¨Óªº¡^¡I

TOP

¦^´_ 4# ­ã´£³¡ªL


    ·PÁª©¥D¤j¤j!
    ¤p¤k¤l¬ã¨s¤@¤U!!

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD