返回列表 上一主題 發帖

QueryTables重複查詢,如何覆蓋上一筆查詢

  1. Sub ex()
  2.         Range("A:L").Clear

  3.         With ActiveSheet.QueryTables.Add(Connection:="URL;https://tw.finance.yahoo.com/q/q?s=" & 1101, Destination:=Range("A1"))
  4.             .WebSelectionType = xlSpecifiedTables
  5.             .WebFormatting = xlWebFormattingNone
  6.             .WebTables = "6"
  7.             .Refresh BackgroundQuery:=False
  8.             .Delete
  9.          End With
  10. End Sub
複製代碼
回復 1# tsunamix03

TOP

        靜思自在 : 人生不一定球球是好球,但是有歷練的強打者,隨時都可以揮棒。
返回列表 上一主題