Open a new window in Chrome with VBA.

fanof

New Member
Joined
Oct 1, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. MacOS
Hi all,

I have an URL that is in a cell and I would like to open a new chrome window with that URL using VBA.
I wrote the below program that works except it opens the URL in a new tab of an already open window rather than in a new window...
VBA Code:
Sub test5()

ActiveWorkbook.FollowHyperlink Address:="https://www.Microsoft.com", _
        NewWindow:=True
End Sub

Can someone help me understand with it does not open a new window? I can't understand.
NB: I use a Mac. I found a couple of programs online that open can do that with window but I have never been able to make them work on my mac...

Thanks!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi
The request for a new window is being ignored by your browser. I tried with Microsoft Edge, which is a Google browser in disguise, and the new page opened in a new tab, not a new window. When I set Safari as my default browser, the new page opened in a new window. It looks like Google has made the decision to make the decision for you. I did not find a setting in Edge/Chrome that looked promising to follow your code's instruction.
 
Upvote 0
Hi Jim, Thanks you very much for investigating. At least I know it does not come necessarily from my code...
Thanks! :)
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top