|
请测试
- Sub xxx()
- Application.ScreenUpdating = 0
- With CreateObject("Msxml2.ServerXMLHTTP")
- URL = "http://www.eol.cn/html/gkcx/jh2015/"
- .Open "GET", URL, False
- .send
- stext = .responsetext
- End With
-
- stext = Replace(stext, "<div class=""dr"">", "<")
- stext = Replace(stext, "<div class=""time"">", "<")
- stext = Replace(stext, "<div class=""ball"">", ",")
- strText = strText & "<table>" & Split(Split(stext, "ÒÔϸßУ°´Ê¡·ÝÅÅÐò")(1), "<h3></h3>")(0) & "</table>"
- With CreateObject("new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
- .SetText strText
- .PutInClipboard
- End With
-
- t = [a65536].End(3).Row + 1
-
- Range("A" & t).Select
- ActiveSheet.Paste
-
- 'Columns("A:A").TextToColumns Destination:=Range("A1"), Comma:=True
- ' [b1].Delete
- ' t = [a65536].End(3).Row
- ' ActiveSheet.Range("a2:c" & t).Sort Range("c2"), 1
- ' [b:b].NumberFormatLocal = "@" ' "000000"
- ' [b:b].NumberFormatLocal = "00000"
- ' [C:C] = ""
- [a1].Select
- Application.ScreenUpdating = 1
- End Sub
复制代码 |
|