VBA mit Chrome arbeiten
27.12.2017 00:47:50
Oli
ich würde gerne, mit VBA und Chrome arbeiten. VBA soll in Chrome befehle wie "GetElementByClassName" ausführen und co. Ist dies möglich? Wenn ja wie?
Sub SearchBot1()
Dim oElement As Object
Chrome = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
Shell (Chrome & " -url https://google.de")
Do While Chrome.Busy = True Or IE.readyState 4: DoEvents: Loop
For Each oElement In oHtml.getElementsByTagName("q")
If Not oElement Is Nothing Then
Debug.Print "Gefunden"
End If
Next
End Sub
Dieser Code hat bis jetzt leider nicht funktioniert. Wäre toll, wenn mir jemand weiterhelfen könnte!
Mit freundlichen Grüßen
Oli