- ©«¤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
|
¦^´_ 32# yan2463
³o°¦µ{¦¡¤£¾A¦X©w®É°õ¦æ¡A¦ýÁÙ¬O¶K¤W¨Óµ¹§A°Ñ¦Ò!!- Option Explicit
- Public doneT As Boolean
- Sub Exnets123() '
- Dim E As Object, tTime, tabtxt As String
- With CreateObject("InternetExplorer.Application")
- '.Visible = True 'False
- .navigate "http://www.yuantaetfs.com/#/RtNav/Index"
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- Application.SendKeys "~", True '«ö¤U¦P·NÁä
- '.document.getElementsByTagName("button")(0).Click '«ö¤U¦P·NÁä
- tTime = Timer
- Do
- Set E = .document.getElementsByTagName("TABLE")(21) '§ï(22)¤]¥i¡AE.all.Length="¼Æ¶qn¸òµÛ§ï"
- DoEvents
- If Timer - tTime > 5 Then MsgBox "½Ðקï E.all.Length =" & E.all.Length: Exit Do '½T©wµL»~«á¥iÃö³¬
- Loop Until Not E Is Nothing And E.all.Length = 415 '¼Æ¶q¥i¯à·|¤£¤Ó¤@¼Ë
- tabtxt = .document.getElementsByTagName("TABLE")(21).outerHTML
- tabtxt = Replace(tabtxt, "<span class=""ng-hide"" ng-show=""o.navFluct>0"">¡¶</span>", "")
- tabtxt = Replace(tabtxt, "<span class=""ng-hide"" ng-show=""o.navFluct<0"">¡¿</span>", "")
- tabtxt = Replace(tabtxt, "<span class=""ng-hide"" ng-show=""o.priceFluct>0"">¡¶</span>", "")
- tabtxt = Replace(tabtxt, "<span class=""ng-hide"" ng-show=""o.priceFluct<0"">¡¿</span>", "")
- .document.body.innerHTML = tabtxt
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- With ActiveSheet ''קï§An¶K¤Wªº¤u§@ªí
- .Cells.Clear
- .[a1].Select
- .PasteSpecial 'NoHTMLFormatting:=True '(¨ú®øµù¸Ñ¡A§ï¦¨¯Â¤å¦r¶K¤W)
- End With
- 'Selection.Columns.AutoFit
- .Quit 'Ãö³¬ºô¶
- End With
- If doneT = True Then
- Application.OnTime Time + #12:00:10 AM#, "Exnets123" '¶¡¹j¦h¤Ö®É¶¡¶}±Ò
- End If
- End Sub
- Sub ¶}Ãö() '¥t³]«ö¶s
- doneT = IIf(doneT = True, False, True) '¦Û¦æקï¾A¦Xªº¤è¦¡
- MsgBox IIf(doneT = True, "©w®É¶}±Ò", "©w®ÉÃö³¬") '¶}±Ò¦A¥h°õ¦æExnets123µ{¦¡´N¯à¶¡¹j°õ¦æ¡AÃö³¬´N¯à¨ú®ø¶¡¹j°õ¦æ
- End Sub
½Æ»s¥N½X |
|