Hello expert, I am studying visual basic. Recently I am trying to Chrome browser from Visual Basic Applications. But unfortunately unable to open it. Please suggest some websites to get a web vba chrome copy.
Chrome browser from Visual Basic Applications
Since Chrome does not support ActiveX, there is no native function for opening it from Visual Basic Applications. However, there are workarounds, one of them being to use this line of code:
shell("C:UsersUSERNAMEAppDataLocalGoogleChromeApplicationChrome.exe -url http:google.ca")
Another way is to use this code:
Sub test544()
Dim chromePath As String
chromePath = “””C:Program FilesGoogleChromeApplicationchrome.exe”””
Shell (chromePath & ” -url http:google.ca”)
End Sub