- 帖子
- 181
- 主題
- 5
- 精華
- 0
- 積分
- 197
- 點名
- 0
- 作業系統
- XP
- 軟體版本
- 2000
- 閱讀權限
- 20
- 性別
- 女
- 註冊時間
- 2014-3-9
- 最後登錄
- 2024-4-29
|
本帖最後由 bobomi 於 2014-10-18 08:26 編輯
Sub IE345678()
If Not Ie Is Nothing Then
MsgBox "IE345678 已執行"
Exit Sub
End If
Set Ie = CreateObject("InternetExplorer.Application")
Ie.Visible = 1
Ie.Navigate "http://newmis.twse.com.tw/stock/group.jsp?ex=tse&ind=TIDX#STATISTICS"
Do While Ie.Busy Or Ie.ReadyState <> 4: DoEvents: Loop
timestock
End Sub
Sub timestock()
'Application.OnTime The_Time, "timestock"
'-------------------------------------------------------
'zzzzz ' 主要程序
For w = 1 To 100000000
Next
'------------------------------------------------------------------------------------------
If Not Ie Is Nothing Then
Ie.Quit
Set Ie = Nothing
End If
my = 3 / 86400
The_Time = Time + my
Application.OnTime The_Time, "IE345678"
End Sub |
|