- ©«¤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
|
¦^´_ 1# Jared
§An§ì¨úªº¬Oºô¶ªº¸ê®Æ- Option Explicit
- Sub Ex() '§ì¨úID
- Dim URL As String, a As Object, e As Object, i
- URL = "http://forum.twbts.com/thread-12514-1-1.html"
- 'URL = "http://§Aªººô¶"
- With CreateObject("InternetExplorer.Application")
- .Navigate URL
- .Visible = True
- Do While .Busy Or .ReadyState <> 4: Loop
- Set a = .Document.all
- With ThisWorkbook.Sheets(1)
- .Cells = ""
- On Error Resume Next
- For Each e In a
- If e.ID <> "" Then
- i = i + 1
- .Cells(i, "a") = e.TAGNAME
- .Cells(i, "B") = e.ID
- .Cells(i, "C") = e.innertext 'ºô¶¤Wªº¤å¦r
- End If
- Next
- End With
- .Quit
- End With
- End Sub
- Sub Ex1() '§ì¨ústroke=
- Dim SP As Variant, i As Integer
- URL = "http://§Aªººô¶"
- With CreateObject("Microsoft.XMLHTTP")
- .Open "get", URL, False
- .send
- SP = Split(.responseText, "stroke=""")
- End With
- With ThisWorkbook.Sheets(2)
- .Cells = ""
- For i = 1 To UBound(SP)
- .Cells(i, "A") = Mid(SP(i), 1, InStr(SP(i), """") - 1)
- Next
- End With
- End Sub
½Æ»s¥N½X |
|