Hi again,
I am trying to retrieve data from an external website using following macro:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 4/21/2002 by Hans
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://1on1.xxxxxxx.com/admin/girltimes.cgi?girl=Oshin&date=04/20/02", _
Destination:=Range("A1"))
.Name = "02_6"
.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
.Refresh BackgroundQuery:=False
End With
End Sub
I have to extract data for about 1200 girls names (Oshin) each for the last 365 days.
How do I write the code if I want to start with todays date and on the next loop with the same girl but yesterdays date and so on.
For the next girl I would just modify the macro manually.
Hans
I am trying to retrieve data from an external website using following macro:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 4/21/2002 by Hans
'
'
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://1on1.xxxxxxx.com/admin/girltimes.cgi?girl=Oshin&date=04/20/02", _
Destination:=Range("A1"))
.Name = "02_6"
.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
.Refresh BackgroundQuery:=False
End With
End Sub
I have to extract data for about 1200 girls names (Oshin) each for the last 365 days.
How do I write the code if I want to start with todays date and on the next loop with the same girl but yesterdays date and so on.
For the next girl I would just modify the macro manually.
Hans