How can I Batch open Hyperlinks to URLs in tabs of my browser?

robgoldstein

Board Regular
Joined
Oct 26, 2013
Messages
165
Office Version
  1. 2019
Platform
  1. Windows
I need to batch open some hyperlinks from a long list of hyperlinks in my excel sheet. I would like these to each open in a new tab of my web browser.
Is there a way to do this?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If you know the cell locations of the links, this macro will do it...
Code:
For Each c In Worksheets("Sheet1").Range("A9:A11").Cells    c.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
Next
that macro assumes you have links in cells A9,A10 and A11 in Sheet1.
kevin
 
Upvote 0
Thanks so much. I just tried using that, and the macro won't run. I just cut and pasted it. Is there anything else I need to do?
 
Upvote 0
I went to the developer tab, then clicked on VB, then went to the view menu and clicked on code, then pasted it in. I then changed the cells and clicked on the Run button.

This is what I have done with other macros i have been given. I a total novice on VB and macros.
thanks so much for your help.
 
Upvote 0
from the developers tab, click Macro, when the dialog open, enter a name for a new macro and click Create. The VB editor will open with a sub routine for your marco. Paste the code in there. Also there is a slight typo in the code above... it should be

Code:
[COLOR=#333333]For Each c In Worksheets("Sheet1").Range("A9:A11").Cells
    c.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
[/COLOR][COLOR=#333333]Next[/COLOR]
HTH
kevin
 
Upvote 0

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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