Solved

Extract as text the location of embedded hyperlink in a cell

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now