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

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

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

¥»©«³Ì«á¥Ñ yanto913 ©ó 2010-10-9 18:25 ½s¿è

§Ú·Q­n¶×¤J¤@­Ó¥~³¡¸ê®ÆµM«á§@¤ÀªR¡A¤§«e§Ú³£¬O¥ÎEXCEL¤W­±¥\¯àªí¶×¤Jºô­¶¸ê®Æ¡A¥i¬O²{¦b¹J¨ì¤@­Ó°ÝÃD
¦bEXCEL¤@¯ë°Ï¦³¥ý¶i»¡¨S¿ìªk³B²z¥u¯à¥ÎVBA¡A³o¬O§Ú³]­pªº¤@­Ó½d¨Ò¡]¤ñ¸û¨S¦³ºô­¶«IÅvªº°ÝÃD¡^¡A
½Ð¥ý¶i¤U¸ü¦^¥h¶}±Ò
https://sites.google.com/site/yanto913/data/Question.htm
«üµÛ¾Ç¸¹"23"·|¥X²{¦U¬ì¦¨ÁZ
§Ú·Q­n¶×¤Jªº¸ê®Æ´N¬O¦U¬ì¦¨ÁZ
¥i¬O¥ÎEXCEL¥u¯à¶×¤J¥i¨£¨ìªº¸ê®Æ
³o­Ó°ÝÃD¤£ª¾¹D¸Ó¦p¦ó¸Ñ¨M
YOYO

ÁÂÁª©¥Dªºµ{¦¡
¤§«e¤ñ¸û¦£¨S¥J²Ó¬ãŪ¨ä§t·N(¥u¬ÝÀ´¤@ÂIÂI)
¥Ø«e·Q§âµ{¦¡À³¥Î¨ì¤u§@¤¤µo²{¦³¨ä°ÝÃD²£¥Í
https://sites.google.com/site/yanto913/home/page
¬O¯à§_¯à¥u§ì¥|¦~¤A¯Z(¯S)©M¥|¦~¤þ¯Z(¯S)¤ºªº¸ê®Æ(§Ú°O±ooffice 2000¶×¤J¥~³¡¸ê®Æ
¥i¥H³W©w­n±q²Ä´X­ÓBlock¶}©lÂ^¨ú¡A¦¹½d¨Òºô­¶¬O²Ä¤G©M²Ä¤TBlock¡^¡A
©ÎªÌ¯à§_§Q¥Î µù¡G¾É®v¤ý¤p©ú ¨ì ªð¦^¸m³»¡ô·í§@¤@­ÓÂ^¨úªº°_©l¥H¤Î²×¤F¡A
¤§«eª©¥Dªºµ{¦¡À³¸Ó¬O¦¬´M±q²Ä´X®æ¶}©l¡A¦ý¬O·|¹J¨ì¥|¦~¥Ò¯Z®æ¼ÆÅܰʦ³¥i¯à¦³¾Ç¥ÍÂà¥X©ÎÂà¤J¾É­P·|Åܦ¨¤­¦C©Î¤C¦C¡A
¥H¤Î¤@¯ë¯Z¯Åªí®æ¤º®e³£¬O8¦æ¡A¦ý¬O¯S®í¯Z¯Åªí®æ·|¦h¤@®æÃö¤ß«×¤]´N¬O9¦æ¡A
¥t¥~§Úªºµù¸Ñ¨ä¹ê¬O©¹¤Uªº¤£ª¾¹D¬°¤°»ò¶Ç¨ì§Úªººô­¶¤W´N³Q§R°£¤F¡A
©Ò¥H¥t¥~¤W¶Ç§Ú­ì¥»ªººô­¶Àɵ¹¦U¦ì¥ý¶i¡A§Æ±æ¯à°÷À°§Ú¸Ñ¨M³o­Ó´o¤Hªº°ÝÃD

Q2.rar (1.57 KB)

YOYO

TOP

ÁÂÁª©¥D¡A¥i¥H¥Î¤F!!
¦ý°¸¦Ó·|¥X²{Automation ¿ù»~(¦p¤U¹Ï)
YOYO

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

¥»©«³Ì«á¥Ñ yanto913 ©ó 2010-10-11 01:14 ½s¿è

©êºp³y¦¨ª©¥Dªº§xÂZ¡I¦]¬°§Ú°µªº¨º­Óºô­¶¬O©ñ¦bÀɮק¨¡A
©Ò¥HÂIªº®É­Ô·|Åܦ¨¤U¸ü¡A¦Ó¤£¬O¶}±Ò¡C
§Ú´«¥Îºô­¶ªº¤è¦¡¡A
https://sites.google.com/site/yanto913/home/page
¥i¬O§Ú¤£ª¾¹D¬°¤°»ò¶Ç¨ìgoogleºô­¶¤W¥¦«á­±¨S¦³ÀÉ®×¥[°ÆÀɦWpage.html
µM«á§Ú¥h§ä¯à©ñºô­¶ªº§K¶OªÅ¶¡³£§ä¤£¤Ó¨ì¡A¤j³¡¤À³£­n¥I¶Oªº
©Ò¥H¥ý¶Ç¨ì§Ú³o­Óºô­¶ªÅ¶¡¡AµM«á¦A¥Îª©¥Dªºµ{¦¡´ú¸Õ
§â("D:\TEST\Question.htm")§ï¦¨("https://sites.google.com/site/yanto913/home/page")
¥i¬O·|¥X²{¨t²Î¿ù»~¡A¦bÀH«K§ä­Ó©_¼¯·s»D´ú¸Õ(«á­±¦³HTML¦WºÙ)ªº¤@¼Ë¤]¤£¦æ
µM«á§Ú¦bGOOGLE§ä¨ì¨â½g¤å³¹¡A
½Ð¦U¦ì¥ý¶i¦bGOOGLE¶K¤W[ºK¨úºô­¶¸ê®Æ - getElementsByName]¦¬´M«á²Ä¤@­Óºô¯¸´N¬O¤F(©È³Q»¡µs³s)

¥t¥~¤@½g¬O³»¶¤W­±ªº(¦@¤T­¶)
http://gb.twbts.com/index.php?PHPSESSID=arhg8hul1cucn9e1gega2m99j1&topic=11352.0

§Ú¸ÕµÛ¥h§ï³o¨â½gªºµ{¦¡¥i¬O§Ë¤F¨â­Ó¦h¤p®ÉÁÙ¬O§ï¤£¦¨¥\(¥\¤O¤£°÷ªº¬O§Ú°Ú¡I¡I)
©Ò¶K¤W¨Ó½Ð¦U¦ì¥ý¶iÀ°¦£¡AÁÂÁ¡I
YOYO

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

ÁÂÁÂGBKEE ª©¥D
µù¸Ñ¤@¤U¡A­n¥h¤u¨ã>³]©w¤Þ¥Î¶µ¥Ø> §â Microsoft Internet Controls¤ÎMicrosoft HTML Object Library¥´¤Ä
¤£¹LÁÙ¬O­n¤U¸ü¤U¨Ó³á¡A¦]¬°§Ú¨º­Óºô­¶¬OÁ|¨Òªº¡A¹ê»Ú¤W­n¤ÀªRªººô­¶Åܧó³t²vÁÙÆZ§Öªº
Á`¤£¯à­n¬Ýªº®É­ÔÁÙ­n¤U¸ü¤@¦¸¡A¦]¬°§Ú·Q¯àª½±µ¸ü¤JµM«á¦A¥[¤W°j°é¹F¨ì§Y®É§ó·sªº¥Øªº
YOYO

TOP

¦^´_ 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

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD