- ©«¤l
- 142
- ¥DÃD
- 18
- ºëµØ
- 0
- ¿n¤À
- 160
- ÂI¦W
- 104
- §@·~¨t²Î
- win10 64¦ì¤¸
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »OÆW °ª¶¯¥«
- µù¥U®É¶¡
- 2015-7-18
- ³Ì«áµn¿ý
- 2025-4-17
        
|
¥»©«³Ì«á¥Ñ lcctno ©ó 2016-3-15 09:38 ½s¿è
³o¬O§Y®É²bÈVBA èèº|¤F¼g ³Â·Ð°ª¤âÀ°§Ú×¥¿¦¨¥i¥¿±`¨Ï¥ÎªºEXCELLªí®æ
Sub §Y®É²bÈ()
Dim E As Object, myItems As Object, myitem
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate "http://www.yuantaetfs.com/#/RtNav/Index"
Application.Wait Now + #12:00:03 AM# '¦³¿ù¦b¶}±Ò
Set myItems = .Document.getElementsByTagName("button")
For Each myitem In myItems
'Application.Wait Now + #12:00:00 AM# '¦³¿ù¦b¶}±Ò
If myitem.Name = "Agree" Then
myitem.Click '«ö¤U°e¥X¬d¸ß«ö¶s
End If
Next
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 |
|