[VBA ] 關於用excel vba抓網路資料 迴圈的問題
Sub F_Sample001()
Dim myURL As String
Dim myWebTbl As String
myURL = "URL;
http://www.twse.com.tw/ch/trading/exchange/MI_5MINS/
genpage/Report200808/A12520080808.php?chk_date=97/08/08"
myWebTbl = "9"
Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:=myURL _
, Destination:=Range("A1"))
.WebFormatting = xlWebFormattingNone
.WebTables = myWebTbl
.Refresh
End With
End Sub
--------------------------------
問題:我想要將myURL中的200808,
20080808,97/08/08等字串變成可以從儲存格抓 ,以便寫迴圈,該怎麼寫?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.25.105.179
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章