Follow Hyperlink address without a physical link

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,426
Office Version
  1. 2016
Platform
  1. Windows
Is it possible to follow a hyperlink address without a physical hyperlink?

I have a sheet with thousands of hyperlinks and I have a routine which creates those links - I'm just curious as to whether I can save time by simply having a routine that goes to a hyperlink address using the cell value as part of the address?

For example - if the hyperlink is currently -http://www.google.co.uk/- can I just have 'Google' in the cell and then have VBA add the remaining text and follow the address?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello,

Well yes you can but you will certainly need to prepare patterns to match the different options you have.

For instance:

With Google, you can do in VBA :
ActiveWorkbook.FollowHyperlink " https://www." & Selection.Value & ".co.uk/"
But then, if you have a cell with MrExcel, the hyperlink end changes:
ActiveWorkbook.FollowHyperlink " https://www." & Selection.Value & ".com"
Etc.

So either you have very similar links, let's say they just open different pages of the same website as so:

cell: page1 → link: https://www.mysite.com/page1
cell: page2 → link: https://www.mysite.com/page2


And you can follow the example very easily. Or you have different kinds of links and you will need to make some sort of database to match and complete the prefix/suffix of the given cell content.
 
Upvote 0
Solution

Forum statistics

Threads
1,225,741
Messages
6,186,761
Members
453,370
Latest member
juliewar

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