返回列表 上一主題 發帖

[發問] 用excel上網 可在vba 設好proxy的 user & password

[發問] 用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
max

        靜思自在 : 不要隨心所欲,要隨心教育自己。
返回列表 上一主題