返回列表 上一主題 發帖

請教交易所除權除息直接抓入工作表?

請教交易所除權除息直接抓入工作表?

http://www.twse.com.tw/zh/page/trading/exchange/TWT48U.html  
照除權日期由小到大排序

已解決
Sub 交易所除息()
    Application.ScreenUpdating = False
    Sheets("Sheet1").Select
Cells.ClearContents
ddd = "URL;http://www.twse.com.tw/exchangeReport/TWT48U?response=html"
With ActiveSheet.QueryTables.Add(Connection:=ddd, Destination:=Range("$A$1"))
.Refresh BackgroundQuery:=False
End With
end sub

TOP

        靜思自在 : 口說一句好話,如口出蓮花;口說一句壞話如口吐毒蛇。
返回列表 上一主題