- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2022-1-12 10:00 ½s¿è
¦^´_ 18# wufonna
¦h¼g´X¦æ¸Õ¸Õ¸Õ¸Õ¬Ý- Private Sub GetIncome() '¨ú·l¯qªí(¦~ªí)ºô¶
- Dim Url, HTMLsourcecode, GetXml, TableG As Object, i As Integer, j As Integer, a As Integer
- Set HTMLsourcecode = CreateObject("htmlfile")
- Set GetXml = CreateObject("msxml2.xmlhttp")
- Url = "http://kgieworld.moneydj.com/z/zc/zcq/zcqa/zcqa_2330.djhtm"
- With GetXml
- .Open "GET", Url, False
- .send
- HTMLsourcecode.write .Responsetext
- Do ' µ{¦¡¹B¦æ³t«×§Ö¥Î°j°é,½T«OTableGª«¥ó¤U¸ü§¹¾ã
- Set TableG = HTMLsourcecode.all.tags("div")
- DoEvents
- '** "JScriptTypeInfo" ¥i¦b °Ï°ìÅܼƵøµ¡ ¬d¬Ý
- '** ©Î¬O Debug.Print TypeName(TableG) ±oª¾
- Loop Until TypeName(TableG) = "JScriptTypeInfo"
- '*****±oª¾ classname="table-row" ªº¦ì¸m
- For a = 0 To TableG.Length - 1
- 'Debug.Print a, TableG(a).classname
- If TableG(a).classname = "table-row" Then Exit For 'Ū¨ú¸ê®Æ°_©l¦C¼Æ
- Next
- '***************************************
- With ActiveSheet
- .Cells.Clear
- For i = a To TableG.Length - 1
- For j = 0 To TableG(i).all.tags("span").Length - 1
- .Cells(i - (a - 1), j + 1) = TableG(i).all.tags("span")(j).innertext
- '****** i - ( a-1) >>×¥¿±q²Ä¤@¦C¶}©l¤U¸ü¸ê®Æ
- Next j
- Next i
- End With
- '***ºô¶ªº½s½X**********************************
- '<div class="table-row"> ¬°©Ònªº¸ê®Æ ªººô¶¤¸¯À
- '<span class="t2 table-cell">´Á§O</span>
- '<span class="t2 table-cell">2020</span>
- '<span class="t2 table-cell">2019</span>
- '<span class="t2 table-cell">2018</span>
- '<span class="t2 table-cell">2017</span>
- '<span class="t2 table-cell">2016</span>
- '<span class="t2 table-cell">2015</span>
- '<span class="t2 table-cell">2014</span>
- '<span class="t2 table-cell">2013</span>
- '</div>************************************
- End With
- Set HTMLsourcecode = Nothing 'ÄÀ©ñ°O¾ÐÅé
- Set GetXml = Nothing
- End Sub '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
½Æ»s¥N½X |
|