- ©«¤l
- 81
- ¥DÃD
- 31
- ºëµØ
- 0
- ¿n¤À
- 117
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2013-8-3
- ³Ì«áµn¿ý
- 2024-4-30
|
¦^´_ 2# luhpro
¤w§ó§ï~~¦ý¤´Â¬O¿ù»~ªº!!
³o¬O¾ã¬qµ{¦¡½X~~ÁٽШó§U
Private Sub Worksheet_Calculate()
' Dim NowDateTime, nowTime, startTime, stopTime
' Dim tr As String
'
'' NowDateTime = Now '²{¦bªº®É¶¡È, ¥h±¼¾ã¼Æ³¡¥÷,
'' nowTime = (NowDateTime - Int(NowDateTime)) '±o¨ì²{¦bªº®É¶¡È
'' startTime = Range("A6") '¶}½L®É¶¡, ¨Ò¦p: "09:00:00 AM"
'' stopTime = Range("A8") '¦¬½L®É¶¡, ¨Ò¦p: "01:30:00 PM"
'
'' If nowTime <= startTime Then '©|¥¼¶}½L
'' Exit Sub
'' ElseIf nowTime > stopTime Then '¤w¸g¦¬½L
'' Exit Sub
'' If [A2] <> "" And [A2] <> "###" Then '²M½Lªºª¬ºA, ¤£¨ú¨ä¸ê®Æ
' tr = Int((nowTime - startTime) * 288) + 2 '¨C®t 300 ¬í´N´«¤@¦C
' If Range("D" & tr) = "" Then
' Range("D" & tr) = Range("A2") '¶}©l»ù
' End If
' If Range("E" & tr) = "" Or Range("A2") > Range("E" & tr) Then
' Range("E" & tr) = Range("A2") '³Ì°ª»ù
' End If
' If Range("F" & tr) = "" Or Range("A2") < Range("F" & tr) Then
' Range("F" & tr) = Range("A2") '³Ì§C»ù
' End If
' Range("G" & tr) = Range("A2") 'µ²§ô»ù
'End Sub |
|