Public Function DiBaFonds(Isin As String, Boerse As String) As Double Dim KursString As String Dim LastKursString As String Dim TextPos As Double Dim XML On Error GoTo Fehler Set XML = CreateObject("MSXML2.ServerXMLHTTP") XML.Open "GET", "https://wertpapiere.ing-diba.de/DE/Showpage.aspx?pageID=33&Isin=" & Isin, False XML.send KursString = XML.responsetext If Boerse = "KAG" Then TextPos = InStr(KursString, "Fondsgesellschaft") + 69 If Boerse = "BER" Then TextPos = InStr(KursString, "Berlin