Webabfrage
02.05.2007 10:13:00
Bernd
folgendes Programm funktioniert auf meinem Rechner problemlos. Auf anderen Rechner kommt Laufzeitfehler 1004 - Seite konnte nicht geöffnet werden. Es soll die kurse deiner Aktie des letzten Monats holen und in das Tabellenblatt schreiben.
Sub GetXetraData()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;https://www.cortalconsors.de/euroWebDe/-?$part=financeinfosHome.Desks.stocks.Desks. _
_
_
snapshot.content.snapshot.snapshot.historicalquotes&id=DE000PAT1AG3&id_name=ISIN&exchange=GER" _
_
_
, Destination:=Range("A1"))
.Name = _
"-?$part=financeinfosHome.Desks.stocks.Desks.snapshot.content.snapshot.snapshot. _
historicalquotes&id=DE000PAT1AG3&id_name=ISIN&exchange=GER"
.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 = "10"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Was habe ich falsch gemacht? Herzlichen Dank für jeden Tip
Bernd