Solved

Extract as text the location of embedded hyperlink in a cell

Posted on 2014-10-27
3
131 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel VBA - macro in one workbook with another open 4 20
Excel User Form VBA Help 18 32
VLOOKUP 6 17
VBA Fill Blanks with text from another cell 6 19
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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