Solved

Extract as text the location of embedded hyperlink in a cell

Posted on 2014-10-27
3
135 Views
Last Modified: 2014-10-28
Hi Hi

i want a UDF or any solution that can extract the the location address of a hyperlink.  

i am familiar with the hyperlink.address property but this one is different. please see attached file.

wowee
Hyperlink.xlsb
0
Comment
Question by:Flora
  • 2
3 Comments
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40406986
Here's a simple function:
Public Function GetHyper(rng As Range) As String
    GetHyper = rng.Hyperlinks(1).Address
End Function

Open in new window


It does not return the "file:///" part, but will show the full filepath (E:\My Document\MyPhoto.jpg)

Regards,
-Glenn
0
 
LVL 6

Author Comment

by:Flora
ID: 40407440
Hi Glenn,

it just returned  My Document\MyPhoto.jpg  it does not give me the correct location path string with filename.

any idea why it does not work?
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40407503
I saw that also.  But when I created a couple of new hyperlinks (to local documents on my hard drive) the full path displayed properly.  I just presumed it was an artifact of the file being saved here on EE.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question