- 帖子
- 76
- 主題
- 33
- 精華
- 0
- 積分
- 116
- 點名
- 0
- 作業系統
- winxp
- 軟體版本
- office2003
- 閱讀權限
- 20
- 性別
- 男
- 來自
- 新竹
- 註冊時間
- 2011-9-29
- 最後登錄
- 2020-8-25
|
[發問] 用excel上網 可在vba 設好proxy的 user & password
那邊可加proxy的 user & password 還是要用其他方法
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://192.xx.xx.xx/abc.php?no=123, Destination:=Selection) '新增查詢
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "1"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
.Name = .ResultRange.Cells(3, 1)
End With |
|