「動いた……。イミディエイトウィンドウにもTrueがずらっと表示されて、最後はFalseになってるね」
'サンプル4.2.3_画面遷移を待ち受ける Busyの監視
Public Sub
navigateAndSetValue3()
Dim ie As
InternetExplorer
'IE起動→Googleに遷移
Set ie =
CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate2
"http://www.google.co.jp/"
'待ちうけ
Do While ie.Busy
Debug.Print ie.Busy
DoEvents
Loop
Debug.Print ie.Busy
'Googleのフォームに値をセットして検索実行
ie.document.forms("f").elements("q").Value
= "ぼたもち おはぎ 違い"
ie.document.forms("f").submit
End Sub