Importing Text; Ending Up w/ Hyperlinks

bonzo

Board Regular
Joined
Oct 23, 2002
Messages
67
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 can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

NateO

Legend
Joined
Feb 17, 2002
Messages
9,700
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...
 

Forum statistics

Threads
1,144,439
Messages
5,724,369
Members
422,547
Latest member
Vision1291

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
Top