- ©«¤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
|
¦^´_ 5# yanto913
https://sites.google.com/site/yanto913/home/page ¥i¥Hª½±µ ¤U¸ü¤F ¥i¬OEx µ{§Ç¤Snקï
·|¥X²{¨t²Î¿ù»~ ¥[¤W¤U¤T¦C¬õ¦âªºµ{¦¡½X ×¥¿
Sub Ex()
Dim ie As New InternetExplorer, Rng As Range, i, ii, s
Set Rng = ActiveSheet.[A1]
With ie
.Navigate ("https://sites.google.com/site/yanto913/home/page")
Do While .Busy = True
Loop
DoEvents
Set Rng = ActiveSheet.[A1]
For i = 0 To .Document.all.Length - 1
If .Document.all(i).tagName = "TD" And Len(.Document.all(i).innerText) > 0 And Len(.Document.all(i).innerText) <= 20 Then
Rng.Value = .Document.all(i).innerText
If .Document.all(i).innerText = "µû»y" Then
Set Rng = ActiveSheet.[A2]
Else
Set Rng = Rng.Offset(, 1)
End If
End If
If .Document.all(i).tagName = "A" Then
If .Document.all(i).Title Like "*°ê¤å*" Then
s = Split(.Document.all(i).Title, " ")
For ii = 0 To UBound(s)
ActiveSheet.Cells(1, 5 + ii).Resize(2) = Application.Transpose(Split(s(ii), "¡G"))
Next
End If
End If
Next
.Quit
End With
End Sub |
|