返回列表 上一主題 發帖

html 匯入,表格格式不對,都在同一儲存格, 如何調整???

html 匯入,表格格式不對,都在同一儲存格, 如何調整???

html 匯入,表格格式不對,都在同一儲存格, 如何調整??? Book1.zip (1.85 KB)

妳檔案內沒提供妳撰寫的程式碼 要怎幫你偵錯?

TOP

本帖最後由 t8899 於 2019-8-27 18:59 編輯
妳檔案內沒提供妳撰寫的程式碼 要怎幫你偵錯?
zheng211016 發表於 2019-8-27 16:48


原始 https://mops.twse.com.tw/mops/web/t203sb01
抓的網頁  https://mops.twse.com.tw/server- ... cr-2890-2019Q1.html

   With CreateObject("InternetExplorer.Application")
.Navigate "https://mops.twse.com.tw/server-java/t164sb01?step=3&SYEAR=" & Year(Date) & "&file_name=tifrs-fr1-m1-ci-cr-" & [b1] & "-" & [B3] & ".html"
  Do While .ReadyState <> 4 Or .Busy: DoEvents: Loop
                    .ExecWB 17, 2       '  Select All
                    .ExecWB 12, 2       '  Copy selection
                                  With ActiveSheet
                     '   .UsedRange.Offset(1).Clear
                .Cells(1, 7).Select
            .PasteSpecial Format:="HTML"
                           End With
  .Quit                          '關閉 IE
End With

TOP

        靜思自在 : 稻穗結得越飽滿,越會往下垂,一個人越有成就,就要越有謙沖的胸襟。
返回列表 上一主題