Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel Hyper Links

I have a column that has a list of paths and file names. I need these to be
turned into hyperlinks to the file listed. I cannot however use the
=Hyperlink formula, because when I do that the link does not come through
when i covert the spread sheet to a PDF, it only seems to work when I insert
the hyperlink. Please tell me there is a way to do this.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Excel Hyper Links

Paste this macro into a VBA module in your workbook. Select the cells to be
converted to hyperlinks - it's okay if the selected range includes blank
cells. Then run the AddHyperlinks macro (Tools Macro Macros
AddHyperlinks Run).

Public Sub AddHyperlinks()
Dim Rng As Range
For Each Rng In Selection
If Len(Rng.Value) 0 Then
ActiveSheet.Hyperlinks.Add Anchor:=Rng, _
Address:=Rng.Value, TextToDisplay:=Rng.Value
End If
Next Rng
End Sub

If you are new to macros, david mcritchie has some instructions on his site
for navigating the vba editor and how to copy/paste macros into your project.
http://www.mvps.org/dmcritchie/excel/excel.htm

Hope this helps,

Hutch

"Cblasingame" wrote:

I have a column that has a list of paths and file names. I need these to be
turned into hyperlinks to the file listed. I cannot however use the
=Hyperlink formula, because when I do that the link does not come through
when i covert the spread sheet to a PDF, it only seems to work when I insert
the hyperlink. Please tell me there is a way to do this.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 Lists and Hyper links PETER J Excel Discussion (Misc queries) 1 October 26th 07 06:13 PM
Changing Hyper links for the whole sheet Praveen.U Excel Discussion (Misc queries) 0 December 15th 06 07:13 AM
hyper links stop working Peter Excel Worksheet Functions 0 October 13th 06 05:27 PM
hyper links not working in Excel workbook Skip Bisconer Excel Discussion (Misc queries) 1 April 20th 06 06:51 AM
Hyper Links sweetcircuit Excel Worksheet Functions 2 June 13th 05 03:35 PM


All times are GMT +1. The time now is 12:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"