ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change list to hyperlinks (https://www.excelbanter.com/excel-programming/308449-re-change-list-hyperlinks.html)

Gord Dibben

Change list to hyperlinks
 
Julia

Using a David McRitchie macro.

Sub MakeHyperlinks()
'David McRitchie
Dim Cell As Range
For Each Cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))
With Worksheets(1)
.Hyperlinks.Add Anchor:=Cell, _
Address:=Cell.Value, _
ScreenTip:=Cell.Value, _
TextToDisplay:=Cell.Value
End With
Next Cell
End Sub

Gord Dibben Excel MVP

On Mon, 30 Aug 2004 13:23:02 -0700, "Julia Chromicz"
wrote:

I have several long lists in Excel of network files. Each cell includes the
full path to the file. I need to change the list to hyperlinks using the
"=hyperlink" function.

For example...
current value of cell C13 H:\Directory\File.xls
desired value of cell C13 =hyperlink("H:\Directory\File.xls")

Any ideas?

Thanks!
Julia




All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com