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

¸Ó¦p¦ó¨ú®ø¥¨¶°???

¸Ó¦p¦ó¨ú®ø¥¨¶°???

¤U­±¬O²{¦b®É¶¡+´X¬íÄÁ«árun ddd, ½Ð°Ý¥i¥H¦b¤w¸grun abc«á, ¤¤³~°±¤îrun ddd¶Ü??
Sub abc()
Application.OnTime Now + 0.000100, "ddd"
End Sub

Sub ddd()
BEEP
End Sub
ªì¾ÇªÌcolor

¹ï¤£°_ª©¥D, ¬O§Ú¸£³U¦³ÂI¥´µ², °Ý¿ù°ÝÃD
«á¨Ó¬Ý²M·¡¤F....   =.=|||
ªì¾ÇªÌcolor

TOP

¦^´_ 16# color790


Sub cc()
a = Now + TimeValue("00:00:10")
Cells(1, 1) = a
MsgBox a
b = Cells(1, 1).Value - Now + Now
MsgBox b
End Sub
¨â­Ó¬õ¦rªºNOW­È¬O¤£¦Pªº
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ color790 ©ó 2012-2-12 21:12 ½s¿è

½Ð°Ý³o­Óa¸òbªº­È¬°¤°»ò¤@¼Ë
msgbox¤£¬OÀ³¸Ó°±¤îµ{¦¡,·í«ö½T©w¤~¤S¶}©l?

Sub cc()
a = Now + TimeValue("00:00:10")
Cells(1, 1) = a
MsgBox a
b = Cells(1, 1).Value - Now + Now
MsgBox b
End Sub
ªì¾ÇªÌcolor

TOP

¦^´_  color790

§Aªº·N«ä¤£ª¾¬O§_¦p¦¹?
ª`·Nµ{§Ç¦WºÙ¤£¯à¨Ï¥ÎVBA«O¯d¦r
Hsieh µoªí©ó 2012-2-12 00:41


ÁÂÁª©¥D~^^
¥D­n¬O·Q§Q¥Î¥ªÁä¨Ó¹F¨ì¼È°±°õ¦æ,
¦pªG¦A«ö¥kÁä, §Y¯à¦^´_°õ¦æ, ¦ý­n¦©±¼­è­è¶}©l¨ì¼È°±ªº®É¶¡
¤ñ¦p, ¤@¶}©l«ö¥kÁä¬O 12:50:10(«öªº·í®É®É¶¡) +10 ¬í °õ¦ætest3
          ¹L¤F5¬í¦b12:50:15 ®É«ö¤F¥ªÁä, °²³]¹L¤F3¬í¦A«ö¥kÁä, ³o®É­Ô·Q¦b 12:50:23¬í°õ¦ætest3
ªì¾ÇªÌcolor

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-2-12 00:42 ½s¿è

¦^´_ 5# color790

§Aªº·N«ä¤£ª¾¬O§_¦p¦¹?
ª`·Nµ{§Ç¦WºÙ¤£¯à¨Ï¥ÎVBA«O¯d¦r
  1. Public x As Long, S As Double, t As Date, yn As Boolean

  2. Sub start()
  3. Application.OnKey "{RIGHT}", "gomysub"
  4. Application.OnKey "{LEFT}", "STOPS"
  5. Range("r2:t30,d4:d8,g4:g8,k4:k8,n4:n8").ClearContents
  6. End Sub
  7. Sub gomysub()
  8. k = 2: m = 2: n = 2
  9. Do Until Cells(k, 18) = ""
  10. k = k + 1
  11. Loop
  12. Do Until Cells(m, 19) = ""
  13. m = m + 1
  14. Loop
  15. Do Until Cells(n, 20) = ""
  16. n = n + 1
  17. Loop
  18. If x = 0 Or x = 2 Then
  19. t = Now + 0.0001
  20. Application.OnTime t, "test3"
  21. yn = True
  22. End If
  23. If x = 0 Then S = Timer
  24. Select Case x
  25. Case 0
  26. S = Timer
  27. x = x + 1
  28. Case 1
  29. S = Timer
  30. x = x + 1
  31. Case 2
  32. Cells(k, 18) = (Timer - S) / 86400: S = Timer
  33. x = x + 1
  34. Case 3
  35. S = Timer
  36. x = x + 1
  37. Case 4
  38. Cells(m, 19) = (Timer - S) / 86400: S = Timer
  39. x = x + 1
  40. Case 5
  41. Cells(n, 20) = (Timer - S) / 86400: S = Timer
  42. x = 0
  43. ActiveWorkbook.Save
  44. End Select
  45. End Sub

  46. Sub closefuntion()
  47. Application.OnKey "{RIGHT}"
  48. x = 0
  49. End Sub
  50. Sub test3()
  51. 'Beep
  52. MsgBox t & "®É¶¡¨ì"
  53. yn = False
  54. End Sub


  55. Sub STOPS()
  56. If yn = True Then Application.OnTime t, "test3", , False: MsgBox "test3¤w¸g°±¤î" Else MsgBox t & "¤w¸g¹B¦æ"
  57. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

­×§ï¦p¤U, ¦ýÁÙ¬O¥¢±Ñ, «ö¤U¥ªÁä(vbKeyLeft)¥i¥H³o¼Ë¥Î¶Ü?
p = Now + 0.000112
If vbKeyLeft = True Then
w = Timer
        Do
            DoEvents
            If vbKeyLeft = True Then
            z = (Timer - w) / 86400
            p = p + z
            Exit Do
            End If
        Loop
End If
Application.OnTime p, "test3"
ªì¾ÇªÌcolor

TOP

­ì¨Ó¬O­°,Ãø©Ç¬Ý¤£¨ì, ÁÂÁª©¥Dªº´£¨Ñ ^^
¨Ó¬ã¨s¤@¤U....
ªì¾ÇªÌcolor

TOP

¦^´_ 7# color790
ªü¦Nª©¥D´£¨Ñªº½d¨Ò¡A2007ª©¥H«á¤£¯à¨Ï¥Î
2007ª©¥»¥H«á½Ð¨Ï¥Î¦¹ÀÉ®×
¤¤Â_µ{§Ç.rar (17.36 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 9# color790
­«·s¤U¸ü¬Ý¬Ý

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD