- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-13 08:42 ½s¿è
¦^´_ 114# c_c_lai - Option Explicit
- Private Sub Worksheet_Calculate()
- Dim Rng As Range, cts As Long
- If Time < #8:30:00 AM# Or Time > #1:31:00 PM# Then Exit Sub ' «DÀç·~®É¶¡
- On Error GoTo ER:
- For cts = 4 To Columns.Count Step 4
- Set Rng = Cells(2, cts)
- With Cells(Rows.Count, cts).End(xlUp)
- ' Á`¶q¦WºÙ©Ò¦bªº³Ì©³¦C©¹¤W¨ì¦³¸ê®ÆªºÀx¦s®æ
- If .Row = 2 Or .Row > 2 And .Value <> Rng.Value Then ' (¦UªÑÁ`¶q¦³ÅÜ°Ê)
- .Offset(1, 1).NumberFormatLocal = "hh:mm:ss" ' ³]©wÀx¦s®æ®æ¦¡ (®É¶¡)
- .Offset(1).Cells(1, -1).Resize(, 4) = Rng.Cells(, -1).Resize(, 4).Value
- End If
- End With
- Next cts
- ER:
- Stop
- MsgBox "¿ù»~È " & Err & VBLF & " cts=" & cts & " - " & Rng.Address & " ³Ì«áªºÁ`¶q¬O¤u§@ªíªº³Ì¥kÄæ -> .Resize(, 4).Value :¶W¥X¤u§@ªí½d³ò" Resume
- End Sub
½Æ»s¥N½X |
|