How do I display the pathname/address of a hyperlink?

D

DMAnalyst

I have a spreadsheet that links to other sheets and word documents. Does
anyone know of a quick way to change the view/display so that it would
display the actual pathname of the linked files rather than the name as I
have it now? Please advise.

Thank you in advance for your response.
 
G

Gary''s Student

The easiest way is to use the following form for your hyperlinks:

=HYPERLINK("C:\temp\xwer.xls#Sheet2!B9","target")

The cell normally displays:
target
simply touch CNTRL-`
This will change the display to formula mode and you can see the
path/filename.
 
D

DMAnalyst

Hi, thank you for the response but it's not quite I'm looking for --

I already have the links built in. I need to export the information into
another program and it would be useful to be able to pull the information in
as the actual pathname rather than the label. That's what it is doing right
now.

I need a quick way to change from the way it's displaying right now which is
the label to the pathname.

E.g.

Current display: F06 Sample Effort
Preferred display: H:/Marketing Drive/Sample Effort.xls

Please help if you can.

Thank you.
 
G

Gary''s Student

Run this tiny macro on the active sheet:

Sub hyperverter()
For Each Hyperlink In ActiveSheet.Hyperlinks
Hyperlink.TextToDisplay = Hyperlink.Address
Next
End Sub

It will convert each hyperlink so the displayed "friendly name" will be the
address.
 
N

ngoc lam

I'm a novice in Excel and macros and its hyperlinks. Can you show me how to run this macro step by step to show the path name? Thank you!
 
N

ngoc lam

I'm a novice w/ macros, excel and its hyperlinks. can you give me step by step directions on how to run this macro? Thank you so much!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top