Ich habe dieses Makro gefunden.
Es kopiert die Links dieser Seite in ein Arbeitsblatt.
Kann man es so ändern, daß es die Seite aktualisiert, alles mackiert, kopiert und einfügt
Dachte da an die Befehle Strg+r, Strg+a, Strg+c auf der Webseite.
Zum einfügen dann Blatt aktivieren und mit:
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
einfügen. Dann meine Bearbeitung mit Application.Run "Datenaktualisieren" starten.
Mit Application.Wait (Now + TimeValue("0:06:10")) ' 6 Min warten und das gleiche noch mal.
Option Explicit
Public Sub test()
Dim objIE As Object
Dim objLinks As Object
Dim objLink As Object
Dim lngCount As Long
Set objIE = CreateObject("InternetExplorer.Application")
With objIE
.navigate "https://www.tankstellenpreise.de/benzinpreise-bad-schoenborn.html"
Do While .busy
Do While .busy
DoEvents
Loop
Loop
.Visible = True
Set objLinks = .Document.Links
For Each objLink In objLinks
lngCount = lngCount + 1
Cells(lngCount, 1) = objLink.href
Cells(lngCount, 2) = "'" & objLink.outertext
Next
.Quit
End With
Set objIE = Nothing
End Sub