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

[µo°Ý] ¦r¦ê&®É¶¡¿z¿ï

[µo°Ý] ¦r¦ê&®É¶¡¿z¿ï

¿z¿ï JÄæ  ¶ë¿ï¥u¦³ G ªº¸ê®Æ
    RÄæ   ¶ë¿ï¥u¦³ R ªº¸ê®Æ
    SÄæ   ¶ë¿ï¦³ LS1T . LS1N . TR . BK . VQ ªº¦r¦ê
    NÄæ  ¦³®É¶¡¸ê®Æªº¥H²{¦b®É¶¡ + 4¤p®É ¥H¥~³£¥h°£±¼(EX²{¦b12ÂI¡A12-16ªº¸ê®Æ¯d¤U¡A¦]WIP­¶­±¨C¤Ñ·|§ó·s)¡AªÅ¥Õ¸ê®Æ¯d¤U
    ­YUÄ榳¦r ¦b I ÄæÅ㤺®e«á­±+¤W * ¸¹( ¥Î·N¬O¦]¬°¦¹Äæ¬O¸ûºò«æ  ¡A¼Ð°O¦b§OÄæ¤Þ¨äª`·N )
    ¾ã²z«áªºµ²ªGÂл\¦bWIP­¶­±¤W(  ¦]¬°¿z±¼ªº¸ê®Æ³£¤£­n¤F)

    ¦A§âWIP¾ã²z¦nªºµ²ªG¥Î¦b¤w¼g¦nªºµ{¦¡½X
  1. Sub ArrangeMent()

  2. Dim Arr, Brr, xD, Dn&, T$, N&, i&, j%
  3. Arr = Range([WIP!A1], [WIP!A1].Cells(Rows.Count, 1).End(xlUp)(1, 12))
  4. Set xD = CreateObject("Scripting.Dictionary")
  5. ReDim Brr(1 To UBound(Arr), 1 To 8)
  6.    For i = 2 To UBound(Arr)
  7.    T = Arr(i, 1) & "|" & Arr(i, 5) & "|" & Arr(i, 7) & "|" & Arr(i, 6)
  8.    Dn = xD(T)
  9.    If Dn = 0 Then
  10.       N = N + 1: Dn = N: xD(T) = N
  11.       For j = 1 To 4: Brr(Dn, j) = Arr(i, Array(1, 5, 7, 6)(j - 1)): Next
  12.    End If
  13.     j = Int(InStr("----BK-VM-TR-", "-" & Split(Arr(i, 3), "_")(1) & "-") / 3)
  14.      If j > 0 Then
  15.       Brr(Dn, j + 4) = Brr(Dn, j + 4) + Arr(i, 11)
  16.        Brr(Dn, 8) = Brr(Dn, 8) + Arr(i, 11)
  17.      End If
  18. Next i
  19. If N = 0 Then Exit Sub
  20.     With Sheets("¤u§@ªí2")
  21.    .[A2].Resize(N, 8) = Brr
  22.   
  23. End With
  24. End Sub
½Æ»s¥N½X
TX00001.zip (341.42 KB)

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD