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

³oºØ¨Ì®É¶¡¹Bºâªº¥¨¶°­n¦p¦ó¼g??

¥»©«³Ì«á¥Ñ ÂŤÑÄR¦À ©ó 2015-1-6 10:36 ½s¿è

¦^´_ 29# GBKEE

G¤j¸ò§A½Ð±Ð¤@¤U¡A§Ú¦³¤@­Óµ{¦¡¦]¬°excel¸Ì­±ªº¸ê®Æ¤ñ¸û¦h¡A»Ý­n¤@ª½§ó·s¡A¦ýµe­±·|¤@ª½°{Ã{¡A§Ú¦bºô¸ô¤W§ä¤F¤@¤U¡A»¡¬O­n¶K¤W¤U­±ªº¨â¬qµ{¦¡½X¡A¦ý§Ú¤£½T©w¶K¦b­þ­ù¡A½ÐG¤j¸ò§Ú»¡¤@¤U¡A·PÁÂ

Application.ScreenUpdating = False
Application.ScreenUpdating = True

§Ú¦³´X¬qµ{¦¡¶K¥X¨Óµ¹G¤j¬Ý¡A¦b³Â·Ð±z¸ò§Ú»¡¤@¤U¡A·PÁÂ

¥H¤U¬Osheet4
  1. Private Sub CommandButton1_Click()
  2.     Dim pTick As TTick
  3.     Dim I As Integer
  4.     I = 1
  5.     Sheet4.Range("g1:g2").Clear
  6.     Sheet4.Range("a3:f3").Clear
  7.     Sheet4.Range("a5:k90000").Clear
  8.       While Sheet4.Cells(2, I) <> ""
  9.         Status = SKQuoteLib_RequestTicks(I, Sheet4.Cells(2, I))
  10.         I = I + 1
  11.     Wend
  12. End Sub
  13. Private Sub Worksheet_Change(ByVal Target As Range)
  14.     Application.EnableEvents = False
  15.     If Not Intersect(Target, [B5:B90000]) Is Nothing Then
  16.         Range("H" & Target.Row).Formula = "=INT(RC[-6]/100)"
  17.       
  18.      ElseIf Not Intersect(Target, [F5:F90000]) Is Nothing Then
  19.         Range("I" & Target.Row).Formula = "=IF(RC[-6]=-9999.99,R[-3]C[-4],IF(RC[-4]=RC[-6],-RC[-3],IF(RC[-4]=RC[-6]-1,-RC[-3],IF(RC[-4]=RC[-6]-2,-RC[-3],IF(RC[-4]=RC[-6]-3,-RC[-3],IF(RC[-4]=RC[-6]-4,-RC[-3],IF(RC[-4]=RC[-6]-5,-RC[-3],IF(RC[-4]=RC[-5],RC[-3],IF(RC[-4]=RC[-5]+1,RC[-3],IF(RC[-4]=RC[-5]+2,RC[-3],IF(RC[-4]=RC[-5]+3,RC[-3],IF(RC[-4]=RC[-5]+4,RC[-3],IF(RC[-4]=RC[-5]+5,RC[-3],RC[-3])))))))))))))"
  20.      ElseIf Not Intersect(Target, [C5:C90000]) Is Nothing Then
  21.         Range("J" & Target.Row).Formula = "=IF(RC[-1]>0,RC[-4],R1C)"
  22.      ElseIf Not Intersect(Target, [D5:D90000]) Is Nothing Then
  23.         Range("K" & Target.Row).Formula = "=IF(RC[-2]<0,RC[-5],R1C[-1])"
  24.    End If
  25.    Application.EnableEvents = True
  26.         

  27. End Sub
½Æ»s¥N½X
¥H¤U¬Othisworkbook
  1. Option Explicit

  2. Private Sub Workbook_BeforeClose(Cancel As Boolean)
  3. Application.RTD.ThrottleInterval = 2000
  4. Application.Calculation = xlCalculationAutomatic
  5. End Sub

  6. Private Sub Workbook_Open()
  7. Const StartTime As Date = "08:45:00"

  8. Application.RTD.ThrottleInterval = 0
  9. Application.Calculation = xlCalculationManual

  10. Application.OnTime StartTime, "mySchedule"
  11. End Sub
½Æ»s¥N½X
¥H¤U¬O¼Ò²Õ2
  1. Option Explicit
  2. Dim NextTime As Date

  3. Sub RecordPrice()
  4. Calculate
  5. End Sub

  6. Sub mySchedule()
  7. Const StopTime As Date = "14:30:00"

  8. NextTime = Now + TimeValue("00:00:02")
  9. If TimeValue(NextTime) <= StopTime Then
  10.    Application.OnTime EarliestTime:=TimeValue(NextTime), Procedure:="mySchedule"
  11. End If
  12. Call RecordPrice
  13. End Sub

  14. Sub Macro1()
  15. Sheet4.Range("g1:g2").Clear
  16. Sheet4.Range("a3:f3").Clear
  17. Sheet4.Range("a5:i90000").Clear

  18. End Sub
½Æ»s¥N½X
­ì«h¤W¥u¥Î¨ì³o´X­Ó¡A¦b½ÐG¤j¸ò§Ú»¡¤W­±¨º¨â¦æ¥[¦b­þ¸Ì¥i¥HÅýµe­±¤£¦A°{Ã{

TOP

¦^´_ 29# GBKEE
G¤j¡A±¡ªp´N¤j·§¹³¼v¤ù¤¤ªº¼Ë¤l¡A·|¤@ª½°{­Ó¤£°±
http://youtu.be/HkWukKMe2_A

TOP

¦^´_ 32# ÂŤÑÄR¦À
¸Õ¸Õ¬Ý
  1. Sub RecordPrice()
  2.     Application.ScreenUpdating = False
  3.     Calculate
  4.     Application.ScreenUpdating = True
  5. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 33# GBKEE


    ·PÁÂG¤j

TOP

¦^´_ 33# GBKEE

G¤j¤£¦n·N«ä¤S¨Ó½Ð±Ð§A¤F
    http://forum.twbts.com/viewthread.php?tid=13250&extra=

TOP

        ÀR«ä¦Û¦b : ¥Ç¿ù¥XÄb®¬¤ß¡A¤~¯à²M²bµL·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD