copy hyperlink

namrata

New Member
Joined
Nov 11, 2010
Messages
21
hi,

I want to Copy hyperlink form my source code to my excel sheet. please tell me how to do it.:confused:
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
u getting it wrong

this is my source code
"

<div id="srProductTitle_B0041ORWE8_0" class="productTitle"><a href="http://www.amazon.com/AME-Sleepwear-Boys-Roddin-Pajama/dp/B0041ORYH8/ref=sr_1_1?ie=UTF8&s=apparel&qid=1290159410&sr=8-1"><img ******="if (typeof uet =='function') {
uet('af');uet('cf');

}amznJQ.available('search-js-general', function() {SPUtils.triggerATFEvent();});"
src="http://ecx.images-amazon.com/images/I/51B4A6XZYdL._SL160_AA160_.jpg" class="" border="0" alt="Product Details" width="160" height="160"/><br clear="all" />AME Sleepwear Boys 2-7 Hot Roddin' Coat Pajama</a></div>"

<div id="srItemData_B0041ORWE8_0">


From This Source code i wan to copy the link which changes with evry page.

</pre>
 
Upvote 0
hey m sorry.....but the code you provided will print only one link and the text i have a webpage in amazon from where evrytym i enter the product name i want it to copy the url......
the source code is


<div id="srProductTitle_B0041ORWE8_0" class="productTitle">
<a href="http://www.amazon.com/AME-Sleepwear-Boys-Roddin-Pajama/dp/B0041ORYH8/ref=sr_1_1?ie=UTF8&s=apparel&qid=1290159410&sr=8-1">
<img ******="if (typeof uet =='function') {
uet('af');uet('cf');}amznJQ.available('search-js-general', function() {SPUtils.triggerATFEvent();});"
src="http://ecx.images-amazon.com/images/I/51B4A6XZYdL._SL160_AA160_.jpg" class="" border="0" alt="Product Details"
width="160" height="160"/><br clear="all" />AME Sleepwear Boys 2-7 Hot Roddin' Coat Pajama</a></div>
<div id="srItemData_B0041ORWE8_0">

want to copy this Href Url in my excel

</pre>
 
Upvote 0
Upvote 0
If A1 contains B0041ORYH8 you can use the formula:

HTML:
=HYPERLINK("http://www.amazon.com/AME-Sleepwear-Boys-Roddin-Pajama/dp/"&A1&"/ref=sr_1_1?ie=UTF8&s=apparel&qid=1290159410&sr=8-1""")
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,791
Members
449,095
Latest member
m_smith_solihull

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