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

[µo°Ý]VBA§ì¨ú.PHP­¶°ÝÃD??

½Ð°Ý¤j¤j¡A
³o¬qµ{¦¡¸Ì¥L¬O¦p¦óª¾¹D»Ý­nªº®æ¤l¬Oºô­¶Åã¥Ü°Ï¸Ìªº²Ä´Xªºªí®æ??
¨Ò¦p: getelementsbytagname ...
¤ô¤¸¯À µoªí©ó 2013-1-17 16:56



­n±qºô­¶¤Wªº¥N½X¬Ý
.Document.all("rpt_result").getelementsbytagname("table")
VBA¤W·Q§äªº¬Oºô­¶¥N½X¤U ID ¬°rpt_result ªº¼Æ­ÓTABLE:

À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

½Ð°Ý¤j¤j¡A
³o¬qµ{¦¡¸Ì¥L¬O¦p¦óª¾¹D»Ý­nªº®æ¤l¬Oºô­¶Åã¥Ü°Ï¸Ìªº²Ä´Xªºªí®æ??
¨Ò¦p: getelementsbytagname("table")(2) 'Åã¥Ü°Ï²Ä3­Óªí®æ
¤pªº­è¾Ç²ßVBA¡A­Y¦³µo°Ý¿ù»~½Ð¨£½Ì!!!ÁÂÁÂ
Nicole

TOP

ÁÂÁ¤j¤jªº¦^µª  §Ú¹ïVBA¤S§ó¤F¸Ñ¤F

TOP

¦^´_ 12# lalalada

ÁÂÁ¤j¤jªº¼ö¤ß¤À¨É,§V¤O¾Ç²ß¤¤!!

TOP

¥i¥H°Ñ¦Ò¬Q¤Ñ¤~PO¤åªº http://forum.twbts.com/thread-7341-1-1.html  ¸Ì­±¦³¬ÛÃöªºÀ³¥Î

TOP

¥»©«³Ì«á¥Ñ lalalada ©ó 2012-8-3 13:58 ½s¿è

¸ô¹L...
¶¶¤âÀ°§A¼g¤F¤@­Ó
¥»¨Ó¨º­Ó¦³ÂI¤¾ ¨S¦³»{¯u¬Ý
¤£ª¾¹D³o¬O¤£¬O§A­nªº?
¤£¹L¥H«áÁÙ¬O¦Û¤v¼g·|¤ñ¸û¦n³á:)
¨Ï¥Î»¡©ú: 1.¿é¤JªÑ²¼¥N½X 2.¥hC¼Ñ§ä¦P¦WÀÉ®×(.csv)
  1. Sub WrittenByLalalada()
  2. Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
  3. code = Application.InputBox(prompt:= "Written by lalalada", Title:="¿é¤J¥N½X:")
  4.     With WinHttpReq
  5.     .Open "POST", "http://www.gretai.org.tw/ch/stock/statistics/monthly/download_st42.php", False
  6.     .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
  7.     .Send ("stk_no=" & code)
  8.            Set oStream = CreateObject("ADODB.Stream")
  9.            oStream.Open
  10.            oStream.Type = 1
  11.            oStream.Write WinHttpReq.ResponseBody
  12.            oStream.SaveToFile ("C:\" & code & ".csv")
  13.            oStream.Close
  14.     End With
  15. End Sub
½Æ»s¥N½X
³Ñ¤Uªº¥\¯à´N¦Û¤v§ïÅo!

TOP

¦^´_ 10# tsuneng


    §Ú¤]±µªñ4¦~¯Å°Ú!!³o¬O§Aªº»¡ªk§a!!

TOP

ÁÂÁ¦^µª,§Ú¤£¬O·Q"¤£³Ò¦ÓÀò"¦Ó¬O¯uªº¤£·|,¯uªº·Q¾Ç,¤~·|¦b³o´£¥X°ÝÃD¡C(¦p¤j¤j¤]¬O4¦~¯Å¸Ü¡AÀ³¸Ó·|Åé½Ì§Ú­Ì³o¤@¶¥¬qªº¤H,¦b¹q¸£ªºª¾ÃѬO¦³³\¦h¤£¨¬¤§³B)...  ¦A¦¸ÁÂÁ¤j¤j¦^µª.

TOP

¦^´_ 7# tsuneng


    µª®×³£¤w¦^µª¤F!!¦pªGÁÙ¬O·Q¤£³Ò¦ÓÀò,¨º´N¦³¤T½u¤F.:Q

TOP

¦pªG§A¤£·Q©Î¤£·|¼gVBA¡A¥i¥H°Ñ¦Ò³o­ÓÀÉ®×
¤@§Z¤T¥|¡BÅå¨ìåF¥N»x

TOP

        ÀR«ä¦Û¦b : ¤£©È¨Æ¦h¡A¥u©È¦h¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD