Importing Text; Ending Up w/ Hyperlinks

bonzo

Board Regular
Joined
Oct 23, 2002
Messages
79
I have a tab-delimited text file with some absolute URLs as intended cell values. When I import the data, the cell values are nothing more than text. If I select the file and then select another file, the URLs change to active hyperlinks -- which is what I wanted to begin with. I presume that this is because of the "AutoCorrect - Replace as you type" feature.

Anyway, I've temporarily worked around this annoyance by altering the import data to use the =HYPERLINK() worksheet function. However, I would prefer to just import the data as is and end up with active hyperlinks.

Is there a way to do that? If so, what do I need to do to make that happen?

Thanks...
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Howdy Bonzo, you could try running a vba procedure to light your text up:

<pre>
Sub Macro1()
Dim n As Range, cl As Range
Set n = ActiveSheet.[a1].SpecialCells(xlCellTypeConstants)
For Each cl In n
cl.Hyperlinks.Add Anchor:=cl, Address:=cl
Next
End Sub</pre>

The appropriate range can be trimmed as well...
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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