So I recorded my macro and it allows me to pull table information from 1 web page:
there are multiple pages I think more than 100 I would like to get. how can I go about going from one page to the next completing the same sequence?
Code:
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://search.ancestry.com/cgi-bin/sse.dll?db=PADeathCollection&gss=sfs28_ms_db&new=1&rank=1&msT=1&msddy=1906&MSAV=1&uidh=ek7" _
, Destination:=Range("$A$1"))
.Name = _
"sse.dll?db=PADeathCollection&gss=sfs28_ms_db&new=1&rank=1&msT=1&msddy=1906&MSAV=1&uidh=ek7"
.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
End Sub
there are multiple pages I think more than 100 I would like to get. how can I go about going from one page to the next completing the same sequence?