返回列表 上一主題 發帖

請教判斷IE物件 是否在執行(在記憶體中(未關閉))的語法 ??

請教判斷IE物件 是否在執行(在記憶體中(未關閉))的語法 ??

本帖最後由 t8899 於 2015-1-22 19:52 編輯

Set Ie = CreateObject("InternetExplorer.Application")
Ie.Visible = True
   Ie.Navigate .....................

請教判斷IE物件 是否在執行(INTERNET EXPLORER在記憶體中(未關閉))的語法 ??
不是用
IE.QUIT
SET IE=NOTHING
IF Ie Is Nothing
這樣還是無法 確認IE是否在記憶體中
想確認  ie.quit 是否真正離開成功

Set Ie = CreateObject("InternetExplorer.Application")
Ie.Visible = True
on error resume next
do
Ie.Quit
loop until err
SET IE=NOTHING

TOP

Set Ie = CreateObject("InternetExplorer.Application")
Ie.Visible = True
on error resume next
do
...
bobomi 發表於 2015-1-23 18:56

語法是否有錯 ??
do
Ie.Quit
loop until err
----------------------
DO UNTIL ERR (這是ERR??)
IE.QUIT
LOOP

TOP

語法沒錯
但你想放前面也是可以

TOP

        靜思自在 : 為人處世要小心細心,但不要「小心眼」。
返回列表 上一主題