- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¥»©«³Ì«á¥Ñ stillfish00 ©ó 2013-6-21 11:20 ½s¿è
¦^´_ 1# vzcen
¨S¥Î¹LDDE¡A¶È¨Ñ°Ñ¦Ò¡C- Private gbStart As Boolean
- Private recTime
- Private recValue
- Private Sub Worksheet_Calculate()
- Dim ddeValue
-
- If gbStart Then
- ddeValue = [B6].Value
- If IsEmpty(recValue) Then recTime = Time: recValue = ddeValue
-
- If Minute(recTime) = Minute(Time) Then
- If ddeValue > recValue Then recTime = Time: recValue = ddeValue
- Else
- '¬ö¿ý®É¶¡¦bDÄæ³Ì«á¤@¦C¤U¤è
- Cells(Rows.Count, "D").End(xlUp).Offset(1).Value = recTime
- '¬ö¿ý»ù®æ¦bEÄæ³Ì«á¤@¦C¤U¤è
- Cells(Rows.Count, "E").End(xlUp).Offset(1).Value = recValue
- recTime = Time: recValue = ddeValue
- End If
- End If
-
- End Sub
- '¥i«Ø¥ß«ö¶s¶}©l©Îµ²§ô
- Private Sub StartRecordData()
- gbStart = True
- End Sub
- Private Sub StopRecordData()
- gbStart = False
- recTime = Empty
- recValue = Empty
- End Sub
½Æ»s¥N½X |
|