HYPERLINKS converting

RomulusMilea

Board Regular
Joined
May 11, 2002
Messages
181
Hello all,
My name is Romulus Milea and I work with Solectron Romania as a C.F.T. Product engineer. My Excel-related issue is that I have a list with almost 2000 hyperlinks created with CTRL + K command and I just want to convert each of them into a hyperlink created with HYPERLINK function.

Please help us to obtain a VBA code which can automatically solve our issue.

Thank you very much in advance and we look forward to reading your answer.

Regards,
Romulus.

P.S. You are the best !!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
On 2002-05-12 21:51, RomulusMilea wrote:
Hello all,
My name is Romulus Milea and I work with Solectron Romania as a C.F.T. Product engineer. My Excel-related issue is that I have a list with almost 2000 hyperlinks created with CTRL + K command and I just want to convert each of them into a hyperlink created with HYPERLINK function.

Please help us to obtain a VBA code which can automatically solve our issue.

Thank you very much in advance and we look forward to reading your answer.

Regards,
Romulus.

P.S. You are the best !!!

I know you are looking for a VBA solution. However, here is an approach using a formula.
Let us say you currently have a hyperlink in cell B9 -- now to convert that into a Hyperlink Function, you can use the following formulas:

=HYPERLINK(B9)

and

="=hyperlink("""&B9&""")"
Then EDIT|COPY and EDIT|PASTE_SPECIAL to convert it to a value.

You may want to explore if this approach works for you.

Regards!
 
Upvote 0
Hi RomulusMilea, I made a vba sample for you.
Please copy this into a standard module and run this macro.

<pre>
Sub test()
Dim Hyp As Hyperlink, c As Range, strAd As String, strSad As String
For Each Hyp In ActiveSheet.Hyperlinks
With Hyp
Set c = .Parent
strAd = .Address
strSad = .SubAddress
.Delete
c.Formula = _
"=HYPERLINK(" & Chr(&H22) & Chr(&H5B) & _
strAd & Chr(&H5D) & strSad & Chr(&H22) & ")"
End With
Next
End Sub
</pre>
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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