Dim row As Integer, col As Integer, stock_array, date_array
row = 0
col = 0
yr = 2017
mnth = "06"
For i = 0 To 100
'以下取得股價資料
Url = "http://www.tse.com.tw/exchangeReport/STOCK_DAY?response=text&date=" & yr & mnth & "01&stockNo=" & stockID(i)
Set XML = CreateObject("Microsoft.XMLHTTP")
Set Stream = CreateObject("ADODB.stream")