
Sub linka()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.jrbrno.cz/L11_S1", Destination:=Range("$A$1"))
.Name = "L11_S1"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingAll
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Stačí meniť časť
http://www.jrbrno.cz/L11_S1
na napr.
http://www.jrbrno.cz/L46_S1
a máš linku 46
makro spúšťaj po výmene vždy na novom liste. V ďalších vstupoch-aktualizácii napr. o 3 dni, stačí AKTUALIZOVAT celý súbor CTRL-Alt-F5 (Obnoviť všetko) resp. nastaviť dáta na automatické obnovenie pri otvorení vo vlastnostiachcitovat