- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
5#
發表於 2012-7-30 16:44
| 只看該作者
回復 3# lalalada - Option Explicit
- Sub Ex()
- Dim QueryTable_Name As String
- With ActiveSheet
- With .QueryTables.Add(Connection:="URL;http://forum.twbts.com/index.php", Destination:=Range("A1"))
- QueryTable_Name = .Name
- .Refresh BackgroundQuery:=False
- End With
- .Names(QueryTable_Name).Delete '刪除:查詢在工作表所定義的範圍名稱
- End With
- End Sub
複製代碼 |
|