ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ½Ð±Ð­n°O¿ý1¤ÀKªº¶}°ª§C¦¬,­n¦p¦ó§ó§ï?

[µo°Ý] ½Ð±Ð­n°O¿ý1¤ÀKªº¶}°ª§C¦¬,­n¦p¦ó§ó§ï?

¥»©«³Ì«á¥Ñ °Ú¥§ ©ó 2014-5-25 02:44 ½s¿è

³o¬O¤p§Ì§ó§ïªº,¦ý¦³¬ö¿ýªº¼Æ­È°£¤F¶}½LÂI¬O¥i¯à¹ïªº,¨ä¥L³£¦³°ÝÃD
If Second(Time) = 0 And Minute(Time) Mod 1 = 0 Then

'¶ñ ¶}°ª§C¦¬¬°§Y®É¦æ±¡
                If Range("C8") <> "" Or Range("C8").Value < Range("C5").Value Then
                      Range("C8").Value = Range("C5").Value
                    End If
      '¶ñ³Ì°ª»ù
               If Range("D8").Value = "" Or Range("C8").Value > Range("D8").Value Then
                      Range("D8").Value = Range("C5").Value
                   End If
      '¶ñ³Ì§C»ù
               If Range("E8").Value = "" Or Range("C8").Value < Range("D8").Value Then
                      Range("E8").Value = Range("C5").Value
                    End If
   '¶ñ¦¬½L»ù,´N¬O§Y®É¦æ±¡
                 Range("F8").Value = Range("C5").Value
   End If

¥Îªº¬OE01ªºDDE,¥Ø«e¥H¹Dã´ú¸Õ!!


TEST 1¤ÀK.rar (69.51 KB)

«D±`·PÁ­㴣³¡ªL¤j¤j
¥i¥H¥¿±`¨Ï¥Î¤F
ÁÂÁÂ~

TOP

¦^´_ 12# gery

¸Õ¸Õ¬Ý:
If Time > TimeValue(EndTime) And Time < TimeValue(StartTime) Then '¦¬½L®É¶¡¥H«á¤£°õ¦æ
¡@Sht1.[O8] = "¤w¹L¦¬½L"
¡@uMode = 0
¡@Exit Sub
End If

TOP

¦^´_ 11# ­ã´£³¡ªL


·Q¦A½Ð±Ð¤j¤j  §Ú¬O¬Ý°ê»Ú´Á³f ©Ò¥H·Q§ï¥L¶}¦¬½L®É¶¡  °²³]§Ú·Q¶}½L¬O¤U¤È6ÂI ¦¬½L¬O­â±á2ÂI ¤£ª¾¹D¸Ó«ç»ò§ï©O?ÁÂÁÂ:D

Sub ¦@¥Î°Ñ·Ó()
Set MyBook = ThisWorkbook
Set Sht1 = MyBook.Sheets("X2")
StartTime = "18:00:00"  '¶}½L®É¶¡¡]´£¦­¤Q¬í¶}©l¡A¤~¥i°O¿ý¶}½L¶q»ù¡^"08:44:50"
EndTime = "02:00:00"    '¦¬½L®É¶¡¡]©µ«á¤Q¬í°±¤î°O¿ý¡^¦¹¬°´ú¸Õ¥Î®É¶¡¡A½Ð¦Û¦æ§ó§ï¥¿¦¡®É¶¡ "13:45:10"
End Sub

Sub ¦Û°Ê°O¿ý()
If uMode = 0 Then Exit Sub
If Time > TimeValue(EndTime) Then '¦¬½L®É¶¡¥H«á¤£°õ¦æ
    Sht1.[O8] = "°õ¦æ¤¤"
    uMode = 0
    Exit Sub
End If

TOP

¦^´_ 9# gery


EXCEL¡DªÑ²¼¡DDDE¶Ç¿é¸ê®Æ¡D©T©w®É¶¡¦Û°Ê°O¿ý
http://blog.xuite.net/smile1000mile/blog/95125899

¦³¨Ç½d¨ÒÀɤU¸ü³sµ²¤w¥¢®Ä, ¥i¦h¸Õ´X­Ó(ª`·N:¤U¸üÀÉÀɦW¬O§_¬Û¦P)

TOP

¦^´_ 9# gery


    http://www.FunP.Net/388336

TOP

¦^´_ 7# f3202

f32022¤j ¤£¦n·N«ä ~§Ú¥u¬O¤p¾Ç¥Í·Q­n§ó¤F¸Ñ³o­Ó¤@¤ÀÄÁ¦Û°Ê°O¿ý¬O«ç»ò¹F¨ìªº,ÁÙ¤£¯à¤U¸üªþ¥óÀÉ!!¤£ª¾¹D¯à¤£¯àºI­Ó¹ÏÅý§Ú¬ã¨s¬ã¨s©O?«ô°U«ô°U!!

TOP

·PÁ¤j¤jªº¦^À³
¥Ø«e¥H¹Dã´ú¸Õ  ¶}°ª§C¦¬ §ìªººâÆZ·Çªº
¦ý¬O¦n¹³®É¶¡·|®t¤@¤À  ¬Ý¤£¥X¨Óµ{¦¡¦b­þ¦h¤F¤@¤À

TOP

  1. Public uMode&, StartTime, EndTime
  2. Public MyBook As Workbook, Sht1 As Worksheet, Sht2 As Worksheet, xRow&
  3. Dim o As Single
  4. Dim h As Single
  5. Dim l As Single
  6. Dim c As Single
  7. Sub ¦@¥Î°Ñ·Ó()
  8. Set MyBook = ThisWorkbook
  9. Set Sht1 = MyBook.Sheets("Sheet1")
  10. StartTime = "02:34:00"  '¶}½L®É¶¡¡]´£¦­¤Q¬í¶}©l¡A¤~¥i°O¿ý¶}½L¶q»ù¡^"08:44:50"
  11. EndTime = "23:59:50"    '¦¬½L®É¶¡¡]©µ«á¤Q¬í°±¤î°O¿ý¡^¦¹¬°´ú¸Õ¥Î®É¶¡¡A½Ð¦Û¦æ§ó§ï¥¿¦¡®É¶¡ "13:45:10"
  12. End Sub
  13. Sub ¦Û°Ê°O¿ý()
  14. If uMode = 0 Then Exit Sub
  15. If Time > TimeValue(EndTime) Then '¦¬½L®É¶¡¥H«á¤£°õ¦æ
  16.     Sht1.[J8] = "¤w¹L¦¬½L"
  17.     uMode = 0
  18.     Exit Sub
  19. End If
  20. Sht1.Range("B8") = Time '·í«e®É¶¡¡]®É¶¡½Xªí¡^
  21. If Second(Time) = 0 And Minute(Time) Mod 1 = 0 Then '¨C¢°¤ÀÄÁ°O¿ý¡A¢´¤ÀÄÁ«h§ï¬° Mod 5
  22. xRow = Sht1.Range("A65536").End(xlUp).Row + 1
  23.   If xRow < 9 Then xRow = 9
  24.    Sht1.Range("A" & xRow & ":I" & xRow).Value = Sht1.Range("A8:I8").Value
  25.     o = 0: h = 0: l = 0: c = 0
  26.      If ActiveSheet.Name = Sht1.Name And xRow > 20 Then
  27.      ActiveWindow.ScrollRow = xRow - 10 'Åý³Ì·s¸ê®Æ«O«ù¦b¥i¨£µøµ¡¤¤
  28. End If
  29.    Beep
  30. GoTo xxx
  31. Else
  32. c = Sheets("sheet1").Cells(5, 3)
  33.    If c > h Then h = c
  34.    If c < l Then l = c
  35.    If o = 0 Then o = Sheets("sheet1").Cells(5, 3) Else o = o
  36.    If l = 0 Then l = Sheets("sheet1").Cells(5, 3) Else l = l
  37. Range("C8").Value = o
  38. Range("d8").Value = h '¶ñ³Ì°ª»ù
  39. Range("e8").Value = l '¶ñ³Ì§C»ù
  40. Range("f8").Value = c '¶ñ¦¬½L»ù
  41. xxx:
  42.    ThisWorkbook.Save   '¦sÀÉ
  43. End If
  44. Application.OnTime Now + TimeValue("00:00:01"), "¦Û°Ê°O¿ý"
  45. End Sub
½Æ»s¥N½X
¸Õ¬Ý¬Ý

TOP

°ª§CÂIÁÙ¬O§ì±o¤£·Ç

TOP

        ÀR«ä¦Û¦b : ¡i°±º¢¤£«e¡A²×µL©Ò±o¡j¤H³£°g©ó´M§ä©_ÂÝ¡A¦]¦Ó°±º¢¤£«e¡FÁa¨Ï®É¶¡¦A¦h¡B¸ô¦Aªø¡A¤]¤FµL¥Î³B¡A²×µL©Ò±o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD