poizxc_teng wrote:
請教各位高手,我要如...(恕刪)
很弱的磚塊也拋一塊出來,供您參考
current_year = Format(Date, "yyyy")
current_month = Format(Date, "mm")
taiex_date = Format(Date, "mmdd")
OTC_date = OTC_year + taiex_date
TSE_open = "http://www.twse.com.tw/ch/trading/exchange/MI_INDEX/genpage/Report" _
+ current_year + current_month + "/A112" + current_year + taiex_date + "ALLBUT0999_1.php?select2=ALLBUT0999&chk_date=" + OTC_date
Workbooks.Open Filename:=TSE_open
我是用最簡單的『開啟檔案』的方式,來抓取證交所的資料
缺點就是,只能在每天的14:00收盤產生資料後,才抓得到資料。

我自己是錄製了一個巨集,然後每天14:00以後就開啟並執行它,讓股價資料
自動更新。