標題:
關於CreateObject("InternetExplorer.Application")的使用
[打印本頁]
作者:
av8d
時間:
2013-7-25 15:24
標題:
關於CreateObject("InternetExplorer.Application")的使用
當我放在UserForm1內執行時,會執行非常久都沒反應。
Private Sub CommandButton1_Click()
'帳密驗證
With CreateObject("InternetExplorer.Application")
.Navigate "https://tw.yahoo.com"
Do While .Busy Or .ReadyState <> 4
DoEvents
Loop
.Document.all("username").innerText = "A"
.Document.all("password").innerText = "B"
.Document.all("submit2").Click
.Visible = True
End With
With CreateObject("InternetExplorer.Application")
.Navigate "https://tw.yahoo.com"
Do While .Busy Or .ReadyState <> 4
DoEvents
Loop
.Document.all("username").innerText = "A"
.Document.all("password").innerText = "B"
.Visible = True
End With
End Sub
複製代碼
作者:
av8d
時間:
2013-7-25 16:12
回復
1#
av8d
問題已解決~重開機即可= =
作者:
handsometrowa
時間:
2013-7-29 12:26
回復
1#
av8d
請問版友
關於這個物件,是不是EXCEL VBE 說明裡面都找不到阿
我找了整天了說
要建立一個物件 開啟 一個IE 這個
CreateObject("internetexplorer.application") '使用此方式可以免除 "設定引用項目"
有詳細的說明方式嗎 他後面的幾個屬性
我都想要了解說 謝謝您了^^"
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)