+ Reply to Thread
Results 1 to 12 of 12

How do I open URL in Chrome on a Mac?

  1. #1
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    How do I open URL in Chrome on a Mac?

    How can I do this on a MAC?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    No idea as here it's the Excel for Windows section !

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How do I open URL in Chrome on a Mac?

    Why function? You are not returning any value/object. Just use Sub.

    At any rate, you can use MacScript to open URL in Chrome.

    Check the code in link.
    http://www.officeonemac.com/vba/open_url.html
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: How do I open URL in Chrome on a Mac?

    CK76 - When I try to run the code, on step "MacScript S", I receive:

    Run-time error "5": Invalid procedure call or argument

    Any ideas on why this would be?

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How do I open URL in Chrome on a Mac?

    Ah, looks like MacScript is deprecated (last working version was Excel 2011 for Mac looks like), due to restrictions in sandbox.

    See link for more detail on the subject (see section for Excel 2016 for Mac).
    http://www.rondebruin.nl/mac/applescripttask.htm

    I currently don't have Mac to test on, but Ron's method should work.

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: How do I open URL in Chrome on a Mac?

    Thanks very much for responding. I took a look at the link - Ugh - I can't believe how much is involved. I'm not a MAC guy and was trying this to make my macros work on a mac for a co-worker, but it seems a little involved for me. I wish there was an easier way (or that I was more familiar with a MAC).

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How do I open URL in Chrome on a Mac?

    Can't you just use ThisWorkbook.FollowHyperlink ? Why does it have to be chrome?

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: How do I open URL in Chrome on a Mac?

    That's an interesting idea. In my original post above I'm showing the URL as yahoo.com. But in reality, it's actually a URL that downloads a file. Internet Explore doesn't actually download the file until you hit save, but Chrome will download it to your Download directory. I then run a macro that opens the latest file in the Download directory and I can manipulate that file then. It seems using the FollowHyperlink doesn't download the file when you send it the URL.

    So to re-cap, what I'm able to do in Windows is send a URL to Chrome that downloads a file, then open that file from the download directory. I want to be able to do that same functionality on a MAC.
    Thanks!

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How do I open URL in Chrome on a Mac?

    FollowHyperlink can be used, if you set Chrome as default browser. It will automatically use default browser to navigate to URL (or download file from URL).

    But do note, you will have security warning dialog that will pop-up. It cannot be turned off using Application.DisplayAlert method, and will require one or more of following.
    1. Trusted Location/site setting
    2. Find and edit the registry key associate

    However, I'm not that familiar with Mac, so not sure if this works for Mac as well.

  10. #10
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: How do I open URL in Chrome on a Mac?

    Hmm, it's not working for me - even on Windows. Yes, I can send a URL and it will navigate to a URL, but if the link is to download a file, it does not do that.

  11. #11
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: How do I open URL in Chrome on a Mac?

    Have you tried this: https://stackoverflow.com/questions/...el-vba-for-mac

    You may need to tweak it a bit for saving the file though

  12. #12
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: How do I open URL in Chrome on a Mac?

    Well, I worked on it again today with a MAC, and the Followhyperlink worked!! Mac sometimes causes issues because of permissions, but it looks like it works great! Thanks you guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2017, 07:40 AM
  2. excel hyperlinks open 2 duplicate chrome tabs
    By MikeDeButts in forum Excel General
    Replies: 1
    Last Post: 01-08-2017, 10:56 PM
  3. Put URLs into Excel from open instances of Chrome
    By Skybeau in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2015, 06:12 AM
  4. Macro to save file in IE or to open with Chrome
    By PL709 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2014, 04:44 PM
  5. Need to Open Web Query in Chrome
    By loveexcel2014 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-02-2014, 12:27 PM
  6. How do I open with Chrome and not Internet Explorer?
    By walterscj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2013, 11:13 AM
  7. need a Macro to open chrome from excel when I click on Keyword
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-17-2013, 04:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1