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