EXCEL VBA中報1004錯誤

来源:互联网 发布:华为大数据地址 编辑:程序博客网 时间:2024/05/20 08:00

VBA中定义单元格:

1.选中单元格

2.选资料/汇入外部资料/新增web查询

    Sheets("Sheet1").Select
    Range("A2").Select
    With Selection.QueryTable
        .Connection = _
        "URL;http://10.100.10.181:8082/pis2report/html/output.jsp?operation=FINAL-DISPLAY&fromDate=20070201&toDate=20070306"
        .Refresh BackgroundQuery:=False
        .RefreshOnFileOpen = False
        .RefreshPeriod = 0
    End With
 

原创粉丝点击