- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 250
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-18
|
¦^´_ 4# ounmaxz - Sub nn()
- Dim Rng As Range, A As Range, Ar(), Ay()
- With Sheet2
- Ut = .[P5].Value
- Set Rng = .Range(.[N5], .[N65536].End(xlUp)) '³]¸m¤ñ¹ïªº¼Ð·Ç°Ï°ì
- With Sheet1
- ReDim Preserve Ay(0)
- Ay(0) = .[A1].Resize(, 14).Value
- For Each A In .Range(.[A1], .[A65536].End(xlUp)) '¦bsheet1ªºdÄæ¸ê®Æ´`Àô
- If Not Rng.Find(A, lookat:=xlWhole) Is Nothing And A.Offset(, 13) = "¥[¯Z" Then '¦pªG¼Ð·Ç°Ï§ä¨ìdÄ檺È
- ReDim Preserve Ar(s)
- ReDim Preserve Ay(s + 1)
- Ar(s) = Array(Ut, A.Value, A.Offset(, 1).Value, "", A.Offset(, 2).Value, Format(A.Offset(, 3).Value, "hh:mm"), Format(A.Offset(, 4).Value, "hh:mm"), A.Offset(, 5).Value)
- Ay(s + 1) = A.Resize(, 14).Value
- s = s + 1
- End If
- Next
- End With
- .[A5:I20] = ""
- Sheet3.Cells = "" '²MªÅSheet3¤º®e
- If s > 0 Then .[A5].Resize(s, 8) = Application.Transpose(Application.Transpose(Ar)): _
- Sheet3.[A1].Resize(s + 1, 14) = Application.Transpose(Application.Transpose(Ay)) '§âSheet1²Å¦Xªº¦C½Æ»s¨ìSheet3ªºA1
- End With
- End Sub
- Sub yy() '¶ñº¡¤é´Á
- y = InputBox("¿é¤J¦è¤¸¦~«×", , 2010)
- With Sheet1
- Ar = .[B2:C17].Value
- r = 2
- For i = DateValue(y & "/1/1") To DateValue(y & "/12/31")
- .Cells(r, 1).Resize(16, 1) = i
- .Cells(r, 2).Resize(16, 2) = Ar
- r = r + 16
- Next
- End With
- End Sub
½Æ»s¥N½X |
|