- ©«¤l
- 2834
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 2890
- ÂI¦W
- 0
- §@·~¨t²Î
- ¡e²¤¡f
- ³nÅ骩¥»
- ¡e²¤¡f
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¡e²¤¡f
- µù¥U®É¶¡
- 2013-5-13
- ³Ì«áµn¿ý
- 2024-11-25
|
¤é´Á¥²¶·¬O¥Ñ¤p¦Ó¤j±Æ§Çªº~~
µ{¦¡½X²¤Æ¤£¤F, ºCºC¬Ý§a!- Sub TEST()
- Dim Arr, Brr, Crr, xD, i&, k%, R&, C%, »Ý¨D&, ®w¦s&, V&, TR, Mx&
- Set xD = CreateObject("Scripting.Dictionary")
- Arr = Range([®w¦s!C1], [®w¦s!A65536].End(xlUp))
- For i = 2 To UBound(Arr)
- xD(Arr(i, 1)) = Trim(xD(Arr(i, 1)) & " " & i)
- Next i
- '---------------------------------
- Brr = Range([C2], [B65536].End(xlUp))
- ReDim Crr(1 To UBound(Brr), 1 To 100)
- For i = 1 To UBound(Brr)
- C = 1: »Ý¨D = Brr(i, 2)
- TR = Split(Trim(xD(Brr(i, 1)) & " 1"), " ")
- For k = 0 To UBound(TR)
- ®w¦s = Val(Arr(TR(k), 3)): If ®w¦s = 0 Then GoTo k01
- V = IIf(®w¦s < »Ý¨D, ®w¦s, »Ý¨D)
- Crr(i, C) = CDate(Arr(TR(k), 2)): Crr(i, C + 1) = V
- »Ý¨D = »Ý¨D - V: ®w¦s = ®w¦s - V: Arr(TR(k), 3) = ®w¦s
- C = C + 2
- k01: Next k
- If »Ý¨D > 0 Then Crr(i, C) = "¨S¦³¸ê®Æ": Crr(i, C + 1) = "¼Æ¶q¤£¨¬"
- Next i
- [D2].Resize(UBound(Crr), 100) = Crr
- End Sub
½Æ»s¥N½X
Xl0000064.rar (14.91 KB)
================================ |
|