Sub get_data()
i = 1
Do While i < 20000
strg = "URL;http://www.jobserve.com/RecruiterDirectoryListing.aspx?id=" & i
With Sheet3.QueryTables.Add(Connection:= _
strg, Destination:=Sheet3.Cells(1, 1))
.Name = "RecruiterDirectoryListing.aspx?id=" & i
.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 = "7"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Sheet2.Cells(i, 1).Value = Sheet3.Cells(4, 2).Value
Sheet3.Range("a1:e10").Delete
i = i + 1
Loop
End Sub