Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub GetFinanceData()
- Dim URL As String
- URL = "http://stock.finance.sina.com.cn/hkstock/finance/00001.html"
- Set myIE = CreateObject("InternetExplorer.Application")
- With myIE
- .navigate URL
- .Visible = True
- Do While .Busy = True Or .readyState <> 4
- Loop
- DoEvents
- Set selectItems = myIE.document.getElementsByTagName("select")
- For Each i In selectItems
- i.Value = "zero"
- Next i
- End With
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement