|
3#
楼主 |
发表于 2005-3-7 06:19:00
|
只看该作者
回复错了, 应该是这帖谢谢老大,我已经成功录制Sub Macro1()
'
' Macro1 Macro
' ・゙・ッ・橆帛hネユ : 2005/3/6 ・讖`・カゥ`テ・: Denzel
''
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://sports.xxxxxxx.com/scores/2005/06/02/03/01/ninki_tfw.html", _
Destination:=Range("B1"))
.Name = "ninki_tfw"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "29"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Range("E24").Select
End Sub"URL;http://sports.xxxxxxx.com/scores/2005/06/02/03/01/ninki_tfw.html", _我要改的是上面url里面的最后一串数字, 就是说/2005/06/02/03/01//2005/06/02/03/02//2005/06/02/03/03//2005/06/02/03/04/我应该怎么改啊, 再教教我吧, 因为我不懂编程. |
|