VBA code to return URL of webpage after redirected URL

SR1

Board Regular
Joined
Dec 4, 2007
Messages
77
Hi,

I was wondering it was possible to return the URL of a webpage after a redirected hyperlink.

Basically, if you open any of the following hyperlinks in Google Maps based on the left hand column:

83 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/83 ABBEY AVENUE WEMBLEY HA0 1LJ
85 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/85 ABBEY AVENUE WEMBLEY HA0 1LJ
87 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/87 ABBEY AVENUE WEMBLEY HA0 1LJ
89 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/89 ABBEY AVENUE WEMBLEY HA0 1LJ
91 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/91 ABBEY AVENUE WEMBLEY HA0 1LJ
93 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/93 ABBEY AVENUE WEMBLEY HA0 1LJ
95 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/95 ABBEY AVENUE WEMBLEY HA0 1LJ
97 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/97 ABBEY AVENUE WEMBLEY HA0 1LJ
99 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/99 ABBEY AVENUE WEMBLEY HA0 1LJ
101 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/101 ABBEY AVENUE WEMBLEY HA0 1LJ
103 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/103 ABBEY AVENUE WEMBLEY HA0 1LJ
105 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/105 ABBEY AVENUE WEMBLEY HA0 1LJ
107 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/107 ABBEY AVENUE WEMBLEY HA0 1LJ
109 ABBEY AVENUE WEMBLEY HA0 1LJ https://www.google.co.uk/maps/place/109 ABBEY AVENUE WEMBLEY HA0 1LJ


It will produce a somewhat different URL that includes the geographic coordinates, eg for 83 Abbey Avenue you will get:

https://www.google.co.uk/maps/place...4ace4558c2c956e!8m2!3d51.5357058!4d-0.2929376

I want to be able to get the new URL so I can extract the coordinates from it, is this possible?
 

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.

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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