ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¶×¤J¥~³¡¸ê®Æªº°ÝÃD¡]¸ê®Æ³Q¥Î¼Ðµùªº¡^

¦^´_ 1# yanto913
¦¹ºô§} https://sites.google.com/site/yanto913/data/Question.htm ¶·¤U¸ü¨ì§Aªº¹q¸£¤¤¦s¬° Question.htm
¤U¦Cµ{§Ç·|±NQuestion.htm ªº¸ê®Æ¤U¸ü¨ì¬¡­¶Ã¯§@¥Î¤¤ªº¤u§@ªí
  1. Sub Ex()
  2. Dim ie As New InternetExplorer, Rng As Range, i, ii, s
  3. Set Rng = ActiveSheet.[A1]
  4. With ie
  5. .Navigate ("D:\TEST\Question.htm")  '¤U¸ü¨ì§Aªº¹q¸£¤¤¦s¬° Question.htm
  6. For i = 0 To .Document.all.Length - 1
  7. If .Document.all(i).tagName = "TD" Then
  8. Rng.Value = .Document.all(i).innerText
  9. If .Document.all(i).innerText = "µû»y" Then
  10. Set Rng = ActiveSheet.[A2]
  11. Else
  12. Set Rng = Rng.Offset(, 1)
  13. End If
  14. End If
  15. If .Document.all(i).tagName = "A" Then
  16. If .Document.all(i).Title Like "*°ê¤å*" Then
  17. s = Split(.Document.all(i).Title, Chr(10))
  18. For ii = 0 To UBound(s) - 1
  19. ActiveSheet.Cells(1, 5 + ii).Resize(2) = Application.Transpose(Split(s(ii), "¡G"))
  20. Next
  21. End If
  22. End If
  23. Next
  24. .Quit
  25. End With
  26. End Sub
½Æ»s¥N½X

TOP

¦^´_ 3# yanto913
­ü¨S¿ìªk! ¥\¤O¤£°÷°Ú!,±qºô­¶§ì¤U¨Óªº¥þ¬O¤@°ï¶Ã½X,¥u¦³±qºô­¶§ì¤U¨Ó¦sÀÉ«á ¤~¦³¿ìªk¤£¬O¶Ã½X.
¦¹µ{¦¡¥u¾A¥Î ¦¹ºô­¶ªº.¨Ã¤£¬O©Ò¦³ºô­¶³£¾A¥Î ¯S®íªºµ{§Ç³£­n¶q¨­»s§@ªº.

TOP

¦^´_ 5# yanto913
https://sites.google.com/site/yanto913/home/page  ¥i¥Hª½±µ ¤U¸ü¤F ¥i¬OEx µ{§Ç¤S­n­×§ï
·|¥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

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD