我是本網站的新手,也是VBA編程的新手。我陷入了一個問題,我必須從this page獲取數據。我需要有超鏈接網址Check Rates 10
按鈕。任何人都可以幫助我解決這個問題。從網站獲取數據的vba代碼
我也做了下面的代碼:
Sub GetData()
Dim IE As New InternetExplorer
IE.navigate "http://www.kieskeurig.nl/zoeken/index.html?q=4960999543345"
IE.Visible = False
Do
DoEvents
Loop Until IE.readyState = READYSTATE_COMPLETE
Application.Wait (Now() + TimeValue("00:00:016")) ' For internal page refresh or loading
Dim doc As HTMLDocument 'variable for document or data which need to be extracted out of webpage
Set doc = IE.document
Dim dd As Variant
dd = doc.getElementsByClassName("lgn")(0).outerHtml
'Range("a1").Value = dd
MsgBox dd
End Sub
在這我收到按鈕的文本,但我想有這個類的值。我覺得我很接近的結果,但不知何故着達到目標...誰能幫我...
問候,
感謝你們兩個......它真的爲我工作!謝謝大家 – user3305327