PC Review


Reply
Thread Tools Rate Thread

How can I extract the address from and implrted hyperlink

 
 
Sandy Shin
Guest
Posts: n/a
 
      11th Aug 2008
I am importung an Excel spreadsheet with a hyperlink and want to use the
address, not the whole hyperlink. I can copy the cells as an htm document and
then view the source to isolate the addresses, but would prefer some code
which extracts the address as part of (or subsequent to) the importation step.
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      12th Aug 2008
Assuming that Access recognises the field as a hyperlink, you could create a
query, and type an expression like this into the Field row in query design:
HyperlinkPart([MyField], 2)

Use your field name in place of MyField.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Sandy Shin" <(E-Mail Removed)> wrote in message
news621DA9B-6206-4440-B4C2-(E-Mail Removed)...
>I am importung an Excel spreadsheet with a hyperlink and want to use the
> address, not the whole hyperlink. I can copy the cells as an htm document
> and
> then view the source to isolate the addresses, but would prefer some code
> which extracts the address as part of (or subsequent to) the importation
> step.


 
Reply With Quote
 
Sandy Shin
Guest
Posts: n/a
 
      12th Aug 2008
Thanks. I did not know of the HyoerLinkPart() function - please note that
HyperlinkPart([myField],2) did not work, but HyperlinkPart[myField]),
acAddress) did

"Allen Browne" wrote:

> Assuming that Access recognises the field as a hyperlink, you could create a
> query, and type an expression like this into the Field row in query design:
> HyperlinkPart([MyField], 2)
>
> Use your field name in place of MyField.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Sandy Shin" <(E-Mail Removed)> wrote in message
> news621DA9B-6206-4440-B4C2-(E-Mail Removed)...
> >I am importung an Excel spreadsheet with a hyperlink and want to use the
> > address, not the whole hyperlink. I can copy the cells as an htm document
> > and
> > then view the source to isolate the addresses, but would prefer some code
> > which extracts the address as part of (or subsequent to) the importation
> > step.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Extract hyperlink from "address" - Excel 2007 Ron Rosenfeld Microsoft Excel Discussion 0 16th Jun 2009 07:41 PM
How to extract "destination address" from Hyperlink - VBA spwmarluk Microsoft Excel Programming 9 24th Oct 2008 10:23 PM
How to extract email address from the address book in Outlook Express? Alexander Vasilevsky Microsoft VB .NET 0 27th Nov 2007 01:44 PM
How to extract email address in hyperlink =?Utf-8?B?QnJvc3N5Zw==?= Microsoft Excel Worksheet Functions 6 27th Jan 2007 03:32 PM
How to extract a web address from a hyperlink cell? =?Utf-8?B?RWwgUmViZWxkZQ==?= Microsoft Excel Misc 2 16th Nov 2006 04:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.