- 帖子
- 248
- 主題
- 55
- 精華
- 0
- 積分
- 314
- 點名
- 88
- 作業系統
- XP / WIN7
- 軟體版本
- 2003 / 2007
- 閱讀權限
- 20
- 性別
- 男
- 來自
- Tainan
- 註冊時間
- 2013-10-18
- 最後登錄
- 2025-4-30
            
|
請問各位大大
小弟使用EXCEL匯入外部連結
下方是大致上匯入的語法 主要是錄製巨集後進行修改- '匯入外部連結
- With Sheets(3).QueryTables.Add(Connection:=Key_URL, Destination:=Sheets(3).Range("A" & Report_Site))
- .WebSelectionType = xlSpecifiedTables
- .WebFormatting = xlWebFormattingNone
- .WebTables = """gridtable"""
- .WebPreFormattedTextToColumns = True
- .WebConsecutiveDelimitersAsOne = True
- .WebSingleBlockTextImport = False
- .WebDisableDateRecognition = False
- .WebDisableRedirections = False
- .Refresh BackgroundQuery:=False
- End With
複製代碼 匯入的值能否保持網站的原格式
因為網站的值是001
但匯入後會轉為1
不知能否一樣用001來顯示
請大大們幫忙解惑
謝謝 |
|