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

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

¦^´_ 10# tsuneng


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

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

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

TOP

¦^´_ 12# lalalada

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

TOP

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

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¡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

ÁA¸Ñ¤F!!!
«D±`ÁÂÁÂK¤jªº¹Ï¤å¸Ñ»¡~
³sdata code ³£¸Ñ»¡¤F~¯uªº«D±`²M·¡!!
Nicole

TOP

¦U¦ì°ª¤â±z¦n
http://www.gretai.org.tw/ch/stock/statistics/monthly/st44.php
»P¤W­zºô¯¸¬ÛÃþ¡A¦ý¥¦¿é¤J®É¦³¤G­Ó°Ñ¼Æ¡A¥Ø«e§ä¨ìªº°Ñ¼Æ¬O"yy"¡A·Q½Ð±Ð¤@¤U¦pªG¬O¦³stk_no»Pyy¡A¤U­±sendªºµ{¦¡¸Ó¦p¦ó­×§ï©O? ÁÂÁÂ
.Send ("stk_no=" & code)

TOP

¦^´_ 12# lalalada


·PÁ±z´£¨Ñªºvba code¡A¸g´ú¸Õ§¹¥þ¥¿±`¤S¤£»Ý­n¶}±ÒIEºô­¶¡A­È±oÆ[¼¯¾Ç²ß¡I
«Ü©êºp¡A§Ú¬O¤p¾Ç¥Í¡A¤£¯à¤U¸üÀɮסA¬O­Ó¤p§¾«Ä¡I

TOP

        ÀR«ä¦Û¦b : ¤H¥Í¤£¤@©w²y²y¬O¦n²y¡A¦ý¬O¦³¾ú½mªº±j¥´ªÌ¡AÀH®É³£¥i¥H´§´Î¡C
ªð¦^¦Cªí ¤W¤@¥DÃD