Solved

Extract as text the location of embedded hyperlink in a cell

Posted on 2014-10-27
3
136 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
converting excel into labels 6 35
INSERT value into first row in 75 workbooks 8 33
need help to look for 16 40
Problem to macro 5 16
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

738 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