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

[µo°Ý] ¹ïÀ³Äæ¦ì°ÝÃD

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-12-12 19:17 ½s¿è

¦^´_ 10# starbox520
¨S¿ù¡I
¨Ï¥Î²Ä¤GºØ¤èªk (ReDim Preserve)¡AÁö¨ü­­©ó Application.Transpose() 255 ªº­­¨î¡A
¦ý¥¦¯à±o¥H°ÊºAªº¼W¥[°}¦C¡A¬O¥¦ªºÀuÂI¡C¦ý¬O¥Ñ©ó©p²{¦³ªº®×¨Ò«o¤£¤Ó¾A¦X¡A¬O¬G§ï±Ä
¤@¦¸ª½±µ«Å§i°}¦C¤j¤pªº²Ä¤@ºØ¤èªk (ReDim ar())¡A¦Ó±N°}¦Cª½±µ²¾Âà (Assign) ¨ì¤u§@ªí³æ¤º¡C
¤£­P¨ü­­©ó Transpose() ªø«×ªº­­¨î¡C
  1. Sub Ex()
  2.     Dim ln As Variant, ar As Variant
  3.     Dim cts As Integer, ct2 As Integer
  4.    
  5.     With Sheets("Data")
  6.         ln = .[A1].CurrentRegion.Value      '  Ln :  : Variant/Variant(1 to 177, 1 to 35)
  7.         '  UBound(Ln, 1) = 177 : Long   /   UBound(Ln, 2) : 35 : Long
  8.         ReDim ar(1 To UBound(ln, 2) + 1, 1 To 2)

  9.         For cts = 1 To UBound(ln, 2) - 5
  10.             ar(cts, 1) = ln(1, cts + 1)  
  11.             ar(cts, 2) = ""
  12.             For ct2 = 3 To UBound(ln, 1)
  13.                  If ln(ct2, cts + 1) <> 0 Then
  14.                     ar(cts, 2) = IIf(ar(cts, 2) = "", ln(ct2, 1) & IIf(ln(ct2, cts + 1) > 0, "+", "") & ln(ct2, cts + 1), _
  15.                                         ar(cts, 2) & "," & ln(ct2, 1) & IIf(ln(ct2, cts + 1) > 0, "+", "") & ln(ct2, cts + 1))
  16.                 End If
  17.             Next ct2
  18.         Next cts
  19.     End With
  20.         
  21.     With Sheets("TEST")
  22.         .[H:I] = ""
  23.         .[H2].Resize(UBound(ar, 1), UBound(ar, 2)) = ar
  24.     End With
  25. End Sub
½Æ»s¥N½X
scanttt2.rar (31.82 KB)

TOP

P0A ªº²Õ¦X¡G

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-12-13 09:15 ½s¿è

¦^´_ 10# starbox520
³o¬O¤§«e°õ¦æ²Ä¤GºØ¤è¦¡ (Ex1()) ©Ò²£¥Í¿ù»~¤§­ì¦]¡G

TOP

¦^´_ 13# c_c_lai


    ­ì¨Ó¦p¦¹

   ÁÂÁÂC¤j¸Ñ»¡!!

TOP

¦^´_ 13# c_c_lai

   
     
    ¦pªG¹³³o¼Ë¥u­n¨úS#XX ©ÎM#XX  «e­±CF00¤£­n¨ú¨ì¡AµM«á²Ä174.175.254.255 ¤£­nŪ¨ì³o4¦Cªº¸ê°T(¤Ï¶À³¡¤À)
    ¥t¥~C¤j¤§«eªº¼gªk³s¦P§âBÄ檺¸ê°T¼g¨ìGÄæ¡A³o³¡¤À¥h°£±¼
     ¥u­nHÄ檺§e²{¸ê°T¡A ³o¼Ë­n«ç»ò­×§ï©O~

      SQ0001.rar (24.38 KB)

TOP

¦^´_ 15# starbox520
²Ä174.175.254.255 ¤£­nŪ¨ì³o4¦Cªº¸ê°T(¤Ï¶À³¡¤À) ?
¤£¤Ó©úÁA¡A½Ð¥Õ¸Ü¤@ÂI¡A
¬O©¿²¤¤£¥h­p¦C³B²z¡AÁÙ¬O¡H

TOP

¦^´_ 16# c_c_lai


    ¹ï´N¬O©¿²¤~

TOP

¦^´_ 17# starbox520
¦ý¬O©pªº SQ0001 ¤Ï¶Àªº³¡¤À¬O 127¡B255¡B127¡B116¡A
¨º ¤S¬O«ç»ò¦^¨Æ¡H
116¡B127 ¤]ºâ¼Æ¶Ü¡H

TOP

¦^´_ 15# starbox520
¤£µ¥©pªº½T»{¦^´_¤F¡A
§Ú·Ç³Æ­n¥Xªù¥hªL¤fªø©°¦^¶E¤F¡C
SQ0001_xlsm.rar (35.78 KB)

TOP

¦^´_ 18# c_c_lai


    Sorry²{¦b¤~¬Ý¨ìQ0Q
    ¥i¬O§Ú¬Ý¶}°_ªºªþÀÉ
     ¥u¦³³o¨â­Ó¦³¤Ï¶ÀQQ
      102.png
     CF00M#SC    CF00M#TER    CF00S#S   CF00S#TE   
     ³o4¦C²¤¹L
     ¬°¤°»ò­n¥hÂå°|ªü
     ¬Ý²´·ú¶Ü Q0Q
     «O­«¨­Åé­C~C¤j¤j!!!

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD