Opening a hyperlink in a cell with a macro

Status
Not open for further replies.

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
820
My formula in cell A1 says: =HYPERLINK(A2,A3)
Cell A2 has the URL
Cell A3 has the name of the website.

And it works, if I click on cell A1 it opens the internet and my target website appears (-:

But my test macro to do that doesn't )-:

Code:
Sub SelectHyperlinkCell()
'
' SelectHyperlinkCell Macro
'


'
    Range("A1").Select
End Sub

I have URLs all the way down
A1
A2
A3
...
A1500

So I would like to have macro that as the last instruction opens up the link. Can this be done?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Status
Not open for further replies.

Forum statistics

Threads
1,213,544
Messages
6,114,239
Members
448,555
Latest member
RobertJones1986

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