- ©«¤l
- 104
- ¥DÃD
- 32
- ºëµØ
- 0
- ¿n¤À
- 144
- ÂI¦W
- 0
- §@·~¨t²Î
- windowsXP
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-2-25
- ³Ì«áµn¿ý
- 2022-9-2
|
¦^´_ 8# Hsieh
¤j¤j§A¦n¡G
¥H¤U¬°§Úµ{¦¡½X¡A¤p§Ì·M¬N¡A½ÐÀ°¦£×§ï¡C
·Qªk¡G
¡i¥ý¿z¿ïD7¥H¤U¸ê®Æ¡j¡÷¡i¦A¿z¿ïG7¥H¤U¸ê®Æ¡j¡÷¡i¨â¦¸¿z¿ï«áªº¸ê®ÆÁ`¤u®É¬Û¥[(¨Ã§â¸ê®Æ¶K¦bC7¤§«á)¡j
¾Þ§@¡G
¡i²Ä¤@µøµ¡¡G¿ï¾Ü¸ê®Æ(D7¿z¿ï)«ö½T©w¡j¡÷¡i²Ä¤Gµøµ¡¡G¿ï¾Ü¸ê®Æ(G7¿z¿ï)®×½T©w¡j¡÷¡i²Ä¤Tµøµ¡¡GListBox¨q¥XÁ`¤u®É¡j *©Ò¿z¿ï¥Xªº¸ê®ÆPO¦bC7¤§«á
Sub pºâ(work As Integer)
Dim Ar(), Ay()
With Sheet1
For Each a In .Range(.[D7], .[D7].End(xlDown))
If a.Value = ¤uºØ¬d¸ßx±M®×½s¸¹.ComboBox1.Value Then
ReDim Preserve Ar(s)
ReDim Preserve Ay(s)
Ar(s) = a.Offset(, 14).Value
Ay(s) = a.Offset(, -3).Resize(, 23).Value
s = s + 1
End If
Next
For Each a In .Range(.[G7], .[G7].End(xlDown))
If a.Value = ¤uºØ¬d¸ßx±M®×x¿ï¾Ü¤uºØ.ComboBox1.Value Then
ReDim Preserve Ar(x)
ReDim Preserve Ay(x)
Ar(x) = a.Offset(, 11).Value
Ay(x) = a.Offset(, -6).Resize(, 23).Value
x = x + 1
End If
Next
End With
If s > 0 Then
Sheet2.Range("C5").CurrentRegion.Offset(2) = ""
Sheet2.[C7].Resize(x, 23) = Application.Transpose(Application.Transpose(Ay))
If work = 1 Then ListBox1.AddItem Application.Text(Application.Sum(Ar), "[hh]:mm:ss")
End If
End Sub |
|