Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Sub GetFinanceData()
  2. Dim URL As String
  3. URL = "http://stock.finance.sina.com.cn/hkstock/finance/00001.html"
  4.  
  5. Set myIE = CreateObject("InternetExplorer.Application")
  6. With myIE
  7. .navigate URL
  8. .Visible = True
  9.  
  10. Do While .Busy = True Or .readyState <> 4
  11. Loop
  12. DoEvents
  13.  
  14. Set selectItems = myIE.document.getElementsByTagName("select")
  15. For Each i In selectItems
  16. i.Value = "zero"
  17. Next i
  18. End With
  19. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement