Search code examples
seleniumselenium-webdriverselenium-chromedrivervb6

vb6 using selenium is faulty " Class not registered 80040154"


I use windows 10 64bit, office 32bit 2016, when i access selenium using VBA in excel it works, but when i do it on vb6 i get an error:

enter image description here

I see on youtube that someone can use vb6 + selenium.

Private Sub Form_Load()
        GetData
End Sub

Function GetData()
    Dim d As New Selenium.ChromeDriver
    d.Get "https://www.google.com/"
End Function 

enter image description here


Solution

  • I also had your problem and it's easy to solve: Run VB6 not in compatibility mode and not in administrator mode.

    you have to locate the file vb6.exe and, with the right click, select 'properties' and go to the 'compatibility' tab. at this point uncheck 'run in compatibility mode' and 'run as administrator'

    property of vb6.exe