返回列表 上一主題 發帖

[發問] 匯入外部連結格式處理

[發問] 匯入外部連結格式處理

請問各位大大

小弟使用EXCEL匯入外部連結

下方是大致上匯入的語法  主要是錄製巨集後進行修改
  1. '匯入外部連結
  2.         With Sheets(3).QueryTables.Add(Connection:=Key_URL, Destination:=Sheets(3).Range("A" & Report_Site))
  3.             .WebSelectionType = xlSpecifiedTables
  4.             .WebFormatting = xlWebFormattingNone
  5.             .WebTables = """gridtable"""
  6.             .WebPreFormattedTextToColumns = True
  7.             .WebConsecutiveDelimitersAsOne = True
  8.             .WebSingleBlockTextImport = False
  9.             .WebDisableDateRecognition = False
  10.             .WebDisableRedirections = False
  11.             .Refresh BackgroundQuery:=False
  12.         End With
複製代碼
匯入的值能否保持網站的原格式

因為網站的值是001

但匯入後會轉為1

不知能否一樣用001來顯示


請大大們幫忙解惑  

謝謝
用功到世界末日那一天~~~

        靜思自在 : 知識要用心體會,才能變成自己的智慧。
返回列表 上一主題