I am using selenium in vba, and the file is sent to some users. I tried this code
Code: Select all
Sub CheckSeleniumInstallation()
Dim bot As Object
On Error Resume Next
Set bot = CreateObject("Selenium.ChromeDriver")
On Error GoTo 0
If Not bot Is Nothing Then
MsgBox "Selenium is installed!"
Else
MsgBox "Selenium is not installed or the specified object could not be created."
End If
End Sub
activex component can't create object
How to skip the error and display a message to the user to install Selenium first