小弟想要用EXCEL VBA 自動抓取每日交易資料
網頁來源為 :
http://www.tpex.org.tw/web/emergingstock/historical/daily/EMdss007.php?l=zh-tw&f=EMdss007.20170728-C.csv
網頁的下拉式選單預設是每次顯示10筆資料,導致我無法抓到全部的資料,所以想請問各位大大,要如何變更下拉式選單為 "全部"的選項好讓我能夠一次抓到全部資料

底下是我撰寫的程式,不知哪裡出錯,請各位大大幫忙指點迷津,謝謝
Sub IE()
Set objIE = CreateObject("InternetExplorer.Application")
Cells.ClearContents
With objIE
.Visible = False
.navigate "http://www.tpex.org.tw/web/emergingstock/historical/daily/EMdss007.php?l=zh-tw&f=EMdss007.20170728-C.csv"
Do While .ReadyState <> 4 Or .busy
DoEvents
Loop
.document.getElementsByName("EMdss007_result_length")(0).selectedindex = 0
Application.Wait (Now + TimeValue("0:00:05"))
Dim D As Object, i As Integer, URL As String
Set D = .document.getElementsByTagName("table")
ActiveSheet.Cells.Clear
For i = 0 To D.Length - 1
Ep i, D(i).outerHTML
Next
.Quit
End With
End Sub
Private Sub Ep(i As Integer, S As String)
Dim R
With CreateObject("InternetExplorer.Application")
.navigate "about:Tabs"
.Visible = True
.document.body[removed] = S
.ExecWB 17, 2
.ExecWB 12, 2
With ActiveSheet
R = IIf(.UsedRange.Rows.Count = 1, 1, .UsedRange.Rows.Count + 2)
.Cells(R, 1) = "第 " & i & " 個 Table"
.Cells(R, 1).EntireRow.Interior.Color = vbYellow
.UsedRange.Cells(R + 1, 1).Select
.PasteSpecial Format:="HTML", link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
End With
.Quit
End With
End Sub