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

[µo°Ý] ¦³Ãö©ó¼´ªÑ²¼Code°ÝÃD

¦^´_ 6# iamaraymond


   ·PÁÂi¤j¦^´_

       §Ú©Ò¿×¤£§Y®É¬O¤ñ¦pºô­¶¤w¸g§ó·s¨ì11:25,¼´¶i¨Óªº¸ê®ÆÁÙ¬O¦b'09:30,·|¦³³oºØª¬ªp!!@@

yvonne

TOP

¦^´_ 5# afu9240

¤£¤ÓÀ´§Y®Éªº·N«ä¡A¥i¥H½Ðafu¤jÁ¿¸Ô²Ó¤@ÂI¶Ü?
Excel VBAºô­¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html

TOP

¦^´_ 4# iamaraymond


    ¦n¹³¨S¿ìªk§Y®É
yvonne

TOP

¦^´_ 3# afu9240
  1. Sub test()

  2. Dim myXML As Object
  3. Set myXML = CreateObject("Microsoft.XMLHTTP")

  4. Dim myHTML As Object
  5. Set myHTML = CreateObject("HTMLFile")

  6. i = 2
  7. With myXML
  8.     For Each stockNo In Range("A2:A4").Value
  9.         .Open "GET", "https://tw.stock.yahoo.com/q/q?s=" & stockNo, False
  10.         .send
  11.    
  12.         myHTML.body.innerHTML = .responseText
  13.         
  14.         Set myTable = myHTML.getElementsByTagName("table")(6)
  15.         
  16.         For j = 1 To 10
  17.             Cells(i, j + 1) = myTable.Rows(1).Cells(j).innerText
  18.         Next
  19.         
  20.         i = i + 1
  21.     Next
  22. End With

  23. Set myXML = Nothing
  24. Set myHTML = Nothing

  25. End Sub
½Æ»s¥N½X
Excel VBAºô­¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html

TOP

¦^´_ 2# iamaraymond


    ¬Oªº ¤j¤j,¥i¥H´£¨Ñ¶Ü???·P®¦
yvonne

TOP

¦^´_ 1# afu9240
©Ò¥H±z­nªº¸ê®Æ¬O:
®É¶¡¡B¦¨¥æ¡B½æ¶i¡B½æ¥X¡Bº¦¶^¡B±i¼Æ¡B¬Q¦¬¡B¶}½L¡B³Ì°ª¡B³Ì§C¶Ü?
Excel VBAºô­¶¸ê®Æ¦¬¶°±Ð¾Ç:
http://forum.twbts.com/thread-20848-1-1.html

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD