| 查看: 111 | 回复: 1 | |||
| 当前主题已经存档。 | |||
idccu木虫 (小有名气)
|
[交流]
【请教】多个网页导入excel中编码问题
|
||
|
小弟在网上找了个可将多个连续网页导入excel中的编码, 但是运行后只是重复将第一个网页导入,不知什么原因?请高手指点一下。 编码如下: Sub Macro1() Dim rows As Long, n As Long, url As String url = "URL;http://my.taobao.com/mytaobao/ra ... ;snap_id=0#RateType" Sheets("Sheet3" .SelectCells = "" For n = 0 To 30000 \ 40 rows = [c65536].End(xlUp).Row + 1 Cells(rows, 1).Activate With ActiveSheet.QueryTables.Add(Connection:=Replace(url, "@", n + 1), Destination:=Cells(rows, 1)) .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = True .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlAllTables .WebFormatting = xlWebFormattingNone .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = False .WebDisableRedirections = False .Refresh BackgroundQuery:=False End With Next MsgBox "OK" End Sub |
» 猜你喜欢
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
基金申报
已经有3人回复
国自然申请面上模板最新2026版出了吗?
已经有9人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
推荐一本书
已经有10人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复

sihao0564
铁杆木虫 (知名作家)
- 博学EPI: 2
- 应助: 0 (幼儿园)
- 金币: 7744.4
- 散金: 2
- 红花: 3
- 沙发: 7
- 帖子: 5221
- 在线: 120小时
- 虫号: 577192
- 注册: 2008-06-22
- 专业: 生化分析及生物传感
2楼2009-09-01 21:01:41












.Select
回复此楼