Replace part of a URL in Excel 2013 with the contents of a cell

Hentr

New Member
Joined
Jan 14, 2019
Messages
6
Hi There

I'm stuck...Please help..:eeek:

I'm a request fulfilment manager, and I have an Excel sheet which is an extract from our Helpdesk system. It's 70.000+ rows. Here is my challenge:

In colum A I have a unique number for the specific Request i.e. RFxxxxx and in colum B I have an URL that I have copied from the browser adressline, but in the URL a specific RFxxxxx number http://hpsm.regsj.intern/sm/index.do?ctx=docEngine&file=request&query=number="RF00021941%22&action=&title=Request%20RF00021941 (this URL is copied to all rows in the spreadsheet)

What I would like to do is to replace the bold text with the data (text) in colum A, whitch is similar in format, how do I do this using VBA or a Macro in all rows, top to bottom?

Kind Regards
Henrik Troels-Hansen
 
Re: How to replace part of a URL in Excel 2013 with the contents of a cell

Hi Sergio

I found the culpret :O)
In this string: =HYPERLINK("http://hpsm.regsj.intern/sm/index.do?ctx=docEngine@file=request&query=number%3D%22"&A2&"%22&action=&title=Request%20"&A2), there is an @ which should be an &, then it worked like it's supposed to.. :)

Thanks a million for your help and patience..

Kind regards
Henrik Troels-Hansen

 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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