I did it
If anybody will need such code:
Dim i As Integer
For i = 225 To 5 Step -1
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://dairybulls.com/search/sirepage/sireUS2.asp?InterbullID=" & Range("AM" & i) & "&Bre=HO&genbase=A" _
, Destination:=Range("AN" & i - 1))
.Name = "i"
.FieldNames = False
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "3"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Next i
End Sub
Bookmarks