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

filter«¬ºA¤£²Å¦X

¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2020-8-1 19:23 ½s¿è
  1. §Ú¤]¬O·s¤â¶¶«K½m²ß¤@¤U ¤£¹L³o¬q¦n¹³­þ¸Ì©Ç©Çªº  ¦ý§Ú¬Ý¤£¥X¨Ó ½Ð¤j¤j­Ì À°À°¦£ ¸Ó¦p¦ó­×§ï ·Pı ¦n¹³°j°é ¤Ó¦h ¤£¥²­nªº¥N½X ¦n¹³«Ü¦h 0.0
  2. Public Sub ½m²ß¸ó¤u§@ªí°}¦C½m²ß()

  3.     For x = 2 To Sheets.Count
  4.         Sheets(x).Cells.Clear
  5.         Sheets(1).Rows(1).Copy Sheets(x).Rows(1)
  6.     Next x
  7.    
  8.     E = 2
  9.     A = Array("¤T°Ó", "»·ªF", "«H¸q")
  10.     K = Range(Cells(2, 1), Cells(2, 3).End(xlDown))
  11.     ReDim B(LBound(K) To UBound(K))
  12.     ReDim Preserve B(LBound(K) To UBound(K))

  13.     For x = 2 To Sheets.Count
  14.         For J = LBound(K) To UBound(K)
  15.             For I = LBound(A) To UBound(A)
  16.             If A(I) <> K(J, 2) Then E = 2
  17.                 If A(I) = K(J, 2) Then
  18.                 If Sheets(K(J, 2)).Cells(E, 1) <> "" Then E = E + 1
  19.                     Sheets(K(J, 2)).Cells(E, 1) = K(J, 1)
  20.                     Sheets(K(J, 2)).Cells(E, 2) = K(J, 2)
  21.                     Sheets(K(J, 2)).Cells(E, 3) = K(J, 3)
  22.                     E = E + 1
  23.                 End If
  24.             Next I
  25.         Next J
  26.     Exit For
  27.     Next x
  28.    
  29.     Erase A, K, B
  30.    
  31. End Sub
½Æ»s¥N½X

TOP

­è¤~¸ÕµÛ§â  For x = 2 To Sheets.Count °j°é§R°£ µ²ªGµo²{ ®Ú¥»¥Î¤£¨ì ........XD

TOP

ReDim B(LBound(K) To UBound(K))
ReDim Preserve B(LBound(K) To UBound(K))
Erase B

³o¬q¤]¤£¥Î ....XD

TOP

¦^´_ 8# ssooi


    E = E + 1 ³o¬q¤]¤£¥Î .....XD  ©êºp §Ú¤]¬O·s¤â§Ú­Ì¥i¥H¤¬¬Û¾Ç²ß

TOP

¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2020-8-2 11:11 ½s¿è

¦^´_ 10# n7822123

ÁÂÁ n7822123 ¤j¤jªº ¤À¨É ¤p§Ì¬ã¨s¤@¤U XD
¶¶«K½Ð°Ý¬°¬Æ»ò¨Ï¥Î                 
               D = Array(K(J, 1), K(J, 2), K(J, 3))
                Sheets(K(J, 2)).Rows(E) = D
ªº®É­Ô·|¥X²{ #N/A

javascript:;
À³¸Ó¦p¦ó¼g ¤~¤£·|¥X²{ #N/A
888.png

TOP

¥»©«³Ì«á¥Ñ °a¤ªºµ ©ó 2020-8-2 15:21 ½s¿è

¦^´_ 13# n7822123
ÁÂÁ n7822123 ªº»¡©ú §Ú©ú¥Õ¤F  ½Ð°Ý ¨º¦pªG­nÅý  A = Array("¤T°Ó", "»·ªF", "«H¸q")  Åܦ¨°ÊºA¦³¼u©Ê ¸Ó¦p¦ó¼g©O?
¦]¬°²{¦b¦³¤@­Ó°ÝÃD ´N¬O ¦pªG¤u§@ªíÅܦh¤F ¤]¥u·|¤ñ¹ï3­Ó¤u§@ªí ·Qªk¬O§â¤u§@ªí¦W¤l¥á¨ìArray()¸Ì­± ¦ý¬O¤£ª¾¹D«ç»ò¥á   Äæ ¸ò ¦C  ªº°ÝÃD §Ú¬O³o¼Ë¼g
  1. Public Sub ¸ó¤u§@ªí°}¦C½m²ß()

  2.     For X = 2 To Sheets.Count
  3.         Sheets(X).Cells.Clear
  4.     Next X
  5.    
  6.     A = Array("¤T°Ó", "»·ªF", "«H¸q")
  7.     K = Range(Cells(2, 1), Cells(2, 4).End(xlDown))
  8.     F = Cells(1, Columns.Count).End(xlToLeft).Column

  9.     For J = LBound(K) To UBound(K)
  10.         For i = LBound(A) To UBound(A)
  11.             If A(i) = K(J, 2) Then
  12.                 If Sheets(K(J, 2)).Cells(1, 1) = "" Then Sheets(1).Rows(1).Copy Sheets(K(J, 2)).Rows(1)
  13.                 For D = 1 To F
  14.                     Sheets(K(J, 2)).Cells(Rows.Count, D).End(xlUp).Offset(1, 0) = K(J, D)
  15.                 Next D
  16.             End If
  17.         Next i
  18.     Next J

  19.     Erase A, K
  20.    
  21.     Sheets(1).Select
  22.     Cells(1, 1).Select
  23.    
  24. End Sub
½Æ»s¥N½X

TOP

ÁÂÁ n7822123 ªº¤À¨É»P±Ð¾Ç ¤p§Ì¾Ç¨ì·sªº ªF¦è¤F ¯uªº«D±`·PÁÂ
¤U­±¬Oµ²ªG  ¯ÊÂI ¯uªºÅܺC¤F....XD ¦]¬°§Úªº°j°é¤Ó¦h¤F..   
§Ú·|ºCºC¬ã¨s n7822123¤j¤jÁÙ¦³ ·Ç´£¤j¤j©Ò¼gªº¤è¦¡
¦ý ¦³«Ü¦h¬Ý¤£À´¬O¯uªº. ¤£¹L§ÚºCºC¬ã¨s ¦pªG¤£À´ªº¦a¤è ÁÙ­n ³Â·Ð«e½ú­Ì«ü±Ð ^^"
  1. Public Sub ¸ó¤u§@ªí°}¦C½m²ß()

  2.     Dim A()
  3.     For X = 2 To Sheets.Count
  4.         Sheets(X).Cells.Clear
  5.         ReDim Preserve A(X - 2)
  6.         A(X - 2) = Sheets(X).Name
  7.     Next X
  8.    
  9.     F = Cells(1, Columns.Count).End(xlToLeft).Column
  10.     K = Range(Cells(2, 1), Cells(2, F).End(xlDown))
  11.    
  12.     For J = LBound(K) To UBound(K)
  13.         For i = LBound(A) To UBound(A)
  14.             If A(i) = K(J, 2) Then
  15.                 If Sheets(K(J, 2)).Cells(1, 1) = "" Then Sheets(1).Rows(1).Copy Sheets(K(J, 2)).Rows(1)
  16.                 For D = 1 To F
  17.                     Sheets(K(J, 2)).Cells(Rows.Count, D).End(xlUp).Offset(1, 0) = K(J, D)
  18.                 Next D
  19.             End If
  20.         Next i
  21.     Next J

  22.     Erase A, K
  23.    
  24.     Sheets(1).Select
  25.     Cells(1, 1).Select
  26.    
  27. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤H­n¦Û·R¡A¤~¯à·R´¶¤Ñ¤Uªº¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD