³oºØ¨Ì®É¶¡¹Bºâªº¥¨¶°n¦p¦ó¼g??
- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
¥»©«³Ì«á¥Ñ ÂŤÑÄ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»¡¬On¶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- Private Sub CommandButton1_Click()
- Dim pTick As TTick
- Dim I As Integer
- I = 1
- Sheet4.Range("g1:g2").Clear
- Sheet4.Range("a3:f3").Clear
- Sheet4.Range("a5:k90000").Clear
- While Sheet4.Cells(2, I) <> ""
- Status = SKQuoteLib_RequestTicks(I, Sheet4.Cells(2, I))
- I = I + 1
- Wend
- End Sub
- Private Sub Worksheet_Change(ByVal Target As Range)
- Application.EnableEvents = False
- If Not Intersect(Target, [B5:B90000]) Is Nothing Then
- Range("H" & Target.Row).Formula = "=INT(RC[-6]/100)"
-
- ElseIf Not Intersect(Target, [F5:F90000]) Is Nothing Then
- 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])))))))))))))"
- ElseIf Not Intersect(Target, [C5:C90000]) Is Nothing Then
- Range("J" & Target.Row).Formula = "=IF(RC[-1]>0,RC[-4],R1C)"
- ElseIf Not Intersect(Target, [D5:D90000]) Is Nothing Then
- Range("K" & Target.Row).Formula = "=IF(RC[-2]<0,RC[-5],R1C[-1])"
- End If
- Application.EnableEvents = True
-
- End Sub
½Æ»s¥N½X ¥H¤U¬Othisworkbook- Option Explicit
- Private Sub Workbook_BeforeClose(Cancel As Boolean)
- Application.RTD.ThrottleInterval = 2000
- Application.Calculation = xlCalculationAutomatic
- End Sub
- Private Sub Workbook_Open()
- Const StartTime As Date = "08:45:00"
- Application.RTD.ThrottleInterval = 0
- Application.Calculation = xlCalculationManual
- Application.OnTime StartTime, "mySchedule"
- End Sub
½Æ»s¥N½X ¥H¤U¬O¼Ò²Õ2- Option Explicit
- Dim NextTime As Date
- Sub RecordPrice()
- Calculate
- End Sub
- Sub mySchedule()
- Const StopTime As Date = "14:30:00"
- NextTime = Now + TimeValue("00:00:02")
- If TimeValue(NextTime) <= StopTime Then
- Application.OnTime EarliestTime:=TimeValue(NextTime), Procedure:="mySchedule"
- End If
- Call RecordPrice
- End Sub
- Sub Macro1()
- Sheet4.Range("g1:g2").Clear
- Sheet4.Range("a3:f3").Clear
- Sheet4.Range("a5:i90000").Clear
- End Sub
½Æ»s¥N½X ì«h¤W¥u¥Î¨ì³o´XÓ¡A¦b½ÐG¤j¸ò§Ú»¡¤W±¨º¨â¦æ¥[¦bþ¸Ì¥i¥HÅýµe±¤£¦A°{Ã{ |
|
|
|
|
|
|
- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
¦^´_ 29# GBKEE
G¤j¡A±¡ªp´N¤j·§¹³¼v¤ù¤¤ªº¼Ë¤l¡A·|¤@ª½°{Ó¤£°±
http://youtu.be/HkWukKMe2_A |
|
|
|
|
|
|
- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
|
|
|
|
|
|
- ©«¤l
- 365
- ¥DÃD
- 40
- ºëµØ
- 0
- ¿n¤À
- 406
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2012-12-11
- ³Ì«áµn¿ý
- 2024-8-24
|
|
|
|
|
|
|