- ©«¤l
- 161
- ¥DÃD
- 26
- ºëµØ
- 0
- ¿n¤À
- 187
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2011-1-2
- ³Ì«áµn¿ý
- 2022-2-16
|
½Ð°ÝG¤j¡A¬O¤£¬O
.Pictures.Insert (.Cells(i, 2))
ªº°ÝÃD
§Úµù¸Ñ¤F¡A´N¥i°õ¦æ
ÁÂÁÂ
Option Explicit
Sub ¤U¸üºô¸ô·Ó¤ù()
Dim a As Variant, e As Integer, i As Integer, s As Variant, p As Integer
With CreateObject("Microsoft.XMLHTTP")
.Open "get", "http://blog.mjjq.com/archives/1975.html", False
.send
a = Split(.responseText, vbLf)
End With
With ActiveSheet
.Pictures.Delete
.Cells.Clear
i = 1
For e = 0 To UBound(a)
If InStr(a(e), "src=""http://") And InStr(a(e), ".jpg"" /><br />") Then
s = Split(a(e), "alt=""")(1)
s = Split(s, """ width=""")(0)
.Cells(i, 1) = s
s = Split(a(e), "src=""")(1)
s = Split(s, """ /><br />")(0)
.Cells(i, 2) = s
p = .Pictures.Count
.Cells(1 + (p * 20), "H").Select
' .Pictures.Insert (.Cells(i, 2))
i = i + 1
End If
Next
End With
End Sub |
|