Results 1 to 5 of 5
  1. #1
    DMT Dave is online now VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,365

    Google Chrome

    Hi Guys, does anyone know how to open a URL in Google Chrome ?

    Dim MyURL as String

    MyURL = "https://www.google.co.uk/maps/dir/"
    OpenFile = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE " & MyURL, vbMaximizedFocus)

    Can this be opened in Chrome ??

    Kind Regards

  2. #2
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Daniel Pineault has some code to do this https://www.devhut.net/2018/02/01/vb...irefox-chrome/

    However if you are trying to do this in an ActiveX web browser control I think you won't have any success - I believe that opens using IE only whatever you try
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Is Chrome set as your default browser? https://stackoverflow.com/questions/...owser-with-vba

  4. #4
    DMT Dave is online now VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,365
    Hi Guys, this worked thank you all for your replies

    Dim stAppName As String, MyURL As String
    Dim stPathName As String


    stAppName = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
    stFilePath = "https://Filename on webpage"
    OpenFile = Shell("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe " & stFilePath, vbMaximizedFocus)

  5. #5
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    If you're creating a variable for the app path, why not use it?
    OpenFile = Shell(stAppName " & stFilePath, vbMaximizedFocus) or similar?

    Thanks for posting the solution!
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Chrome Engine for Webbrowsercontrol
    By GrasM4n in forum Forms
    Replies: 1
    Last Post: 01-05-2019, 02:11 PM
  2. Open Custom HTML in Chrome
    By kdbailey in forum Access
    Replies: 5
    Last Post: 09-09-2016, 11:31 AM
  3. Testing Chrome Add In
    By alansidman in forum General Chat
    Replies: 0
    Last Post: 09-01-2015, 09:40 AM
  4. Sending an Email using Chrome from Access
    By kdbailey in forum Access
    Replies: 6
    Last Post: 07-28-2014, 10:21 AM
  5. WebBrowser Control to use Chrome?
    By kdbailey in forum Access
    Replies: 2
    Last Post: 07-15-2014, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums