- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
¥»©«³Ì«á¥Ñ n7822123 ©ó 2020-6-18 02:29 ½s¿è
¦^´_ 1# Cyssuc
»Ý¨D:
****·Q§âBOMªí®i¶}¬°¦Û°Ê°l®Æ¤Î´£¿ô********±Æ©w¤u³æ
¬Ý¤£¤ÓÀ´§Aªº°_©lÄæ¦ìFU6«ç»ò¨Óªº¡A§Ú³]©wH8Äæ¦ìÅý§A¶ñ¶}©l®É¶¡
Sub ¶ñ±Æµ{()
Dim CelStr As Range, Ri%, Arr, C%, WkD%, DayAdd%
Set CelStr = Rows(5).Find([H8], , xlValues, xlWhole)
[L6].Resize(4, 2000).ClearContents
CelStr(2) = "¶}©l": CelStr(2).Select '¶}©l¤é´Á
With Sheets("²£«~²M³æ")
Ri = .[B:B].Find([H6], , xlValues, xlWhole).Row
Arr = Range(.Cells(Ri - 1, "E"), .Cells(Ri + 1, "D").End(2))
End With
For C = 1 To UBound(Arr, 2)
WkD = Arr(3, C): DayAdd = 0
Do Until WkD = 0
DayAdd = DayAdd + 1
If CelStr(0, 1 + DayAdd) <> "S" Then WkD = WkD - 1
Loop
CelStr(2, 1 + DayAdd) = Arr(1, C)
CelStr(3, 1 + DayAdd) = Arr(2, C)
If C <> UBound(Arr, 2) Then
CelStr(4, 1 + DayAdd) = Arr(1, C + 1)
CelStr(5, 1 + DayAdd) = Arr(2, C + 1)
Set CelStr = CelStr(, 1 + DayAdd)
End If
Next C
End Sub
±Æµ{½d¨ÒVBA.rar (369.29 KB)
|
|