Sub xxx()
Dim ie As InternetExplorer ' 参照設定:Microsoft Interbet Controls
Dim doc As MSHTML.HTMLDocument ' 参照設定:Mictosoft HTML Object library
Dim idx As Integer
Set ie = New InternetExplorer
ie.Visible = True
ie.navigate "http://okwave.jp/mypage"
waitIE ie
Set doc = ie.document
For idx = 0 To doc.Links.Length - 1
If doc.Links(idx).Text = "ランキング" Then
doc.Links(idx).Click
Exit For
End If
Next idx
End Sub
Private Sub waitIE (ie As InternetExplorer)
Do While ie.readyState <> 4 Or ie.Busy = True
DoEvents
Loop
End Sub
お礼
とても参考になりました ありがとうございました。