- ©«¤l
- 41
- ¥DÃD
- 0
- ºëµØ
- 0
- ¿n¤À
- 79
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-4-1
- ³Ì«áµn¿ý
- 2016-2-17
|
§Ú¤£¤Ó·|¥Î¦^´_¡A¦A¸Õ¬Ý¬Ý- Option Explicit
- Sub Ex()
- Dim E As Object, myItems As Object, myitem
- With CreateObject("InternetExplorer.Application")
- .Visible = True
- .Navigate "http://www.yuantaetfs.com/#/RtNav/Index"
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- 'Application.Wait Now + #12:00:01 AM# '¦³¿ù¦b¶}±Ò
- Set myItems = .Document.getElementsByTagName("button")
- For Each myitem In myItems
- If myitem.Name = "Agree" Then
- myitem.Click '«ö¤U°e¥X¬d¸ß«ö¶s
- End If
- Next
- Application.Wait Now + #12:00:01 AM#
- Set E = .Document.getElementsByTagName("TABLE")(21)
- .Document.body.innerHTML = E.outerHTML
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- With ActiveSheet
- .Cells.Clear
- .[A1].Select
- .PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
- End With
- .Quit 'Ãö³¬ºô¶
- End With
- End Sub
½Æ»s¥N½X |
|