[µo°Ý]VBA§ì¨ú.PHP¶°ÝÃD??
- ©«¤l
- 102
- ¥DÃD
- 17
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-5-16
- ³Ì«áµn¿ý
- 2020-9-2
|
¥»©«³Ì«á¥Ñ lalalada ©ó 2012-8-3 13:58 ½s¿è
¸ô¹L...
¶¶¤âÀ°§A¼g¤F¤@Ó
¥»¨Ó¨ºÓ¦³ÂI¤¾ ¨S¦³»{¯u¬Ý
¤£ª¾¹D³o¬O¤£¬O§Anªº?
¤£¹L¥H«áÁÙ¬O¦Û¤v¼g·|¤ñ¸û¦n³á:)
¨Ï¥Î»¡©ú: 1.¿é¤JªÑ²¼¥N½X 2.¥hC¼Ñ§ä¦P¦WÀÉ®×(.csv)- Sub WrittenByLalalada()
- Set WinHttpReq = CreateObject("Microsoft.XMLHTTP")
- code = Application.InputBox(prompt:= "Written by lalalada", Title:="¿é¤J¥N½X:")
- With WinHttpReq
- .Open "POST", "http://www.gretai.org.tw/ch/stock/statistics/monthly/download_st42.php", False
- .setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
- .Send ("stk_no=" & code)
- Set oStream = CreateObject("ADODB.Stream")
- oStream.Open
- oStream.Type = 1
- oStream.Write WinHttpReq.ResponseBody
- oStream.SaveToFile ("C:\" & code & ".csv")
- oStream.Close
- End With
- End Sub
½Æ»s¥N½X ³Ñ¤Uªº¥\¯à´N¦Û¤v§ïÅo! |
|
|
|
|
|
|