我在这个网站上想获取不同期限的利率,并使用VBA将其放入我的excel工作表中。下面是我的代码
Sub ie()
Dim ie As InternetExplorer
Dim pagePiece As Object
Dim webpage As HTMLDocument
Set ie = New InternetExplorer
ie.Visible = True
ie.navigate ("https://www.hkab.org.hk/DisplayInterestSettlementRatesAction.do")
Do While ie.Busy = True
Loop
Set webpage = ie.document
Dim hibor As Object
Set hibor = webpage.getElementsByTagName("tr")
End Sub
还有一件事,我可以将数据存储在指定的单元格中吗?就像我想要B3的隔夜利率,D3的1周利率等等。