PC Review


Reply
Thread Tools Rate Thread

cell address of hyperlink

 
 
=?Utf-8?B?UmljayBTLg==?=
Guest
Posts: n/a
 
      14th Nov 2007
I have this code from one of you guru's (pretty sure it was Tom O.), but I do
not know how to get the cell.address of the hyperlink being tested.

'==========
Sub ChangeLink()
Dim hlink As Hyperlink
Dim s As String
Dim c As String

For Each hlink In ActiveSheet.Hyperlinks
s = hlink.Address 'is path of hyperlink doc.
If Left(s, 5) = "SPECS" Then
s = "=Hyperlink" & "(\\ENGINEERING\PRODUCTION\Qadocs\SPECS\)"
'add code to place new link in cell of hyperlink being tested
End If
Next
End Sub
'==========

All help is appreciated.

--
Regards

Rick
XP Pro
Office 2007

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      14th Nov 2007
Hi Rick


Try this

hlink.Parent.Address



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Rick S." <(E-Mail Removed)> wrote in message news:A9AEF8F6-7870-42B3-BD0E-(E-Mail Removed)...
>I have this code from one of you guru's (pretty sure it was Tom O.), but I do
> not know how to get the cell.address of the hyperlink being tested.
>
> '==========
> Sub ChangeLink()
> Dim hlink As Hyperlink
> Dim s As String
> Dim c As String
>
> For Each hlink In ActiveSheet.Hyperlinks
> s = hlink.Address 'is path of hyperlink doc.
> If Left(s, 5) = "SPECS" Then
> s = "=Hyperlink" & "(\\ENGINEERING\PRODUCTION\Qadocs\SPECS\)"
> 'add code to place new link in cell of hyperlink being tested
> End If
> Next
> End Sub
> '==========
>
> All help is appreciated.
>
> --
> Regards
>
> Rick
> XP Pro
> Office 2007
>

 
Reply With Quote
 
=?Utf-8?B?UmljayBTLg==?=
Guest
Posts: n/a
 
      14th Nov 2007
Parent! I never listend to my parents! LOL

Thank you!

--
Regards

Rick
XP Pro
Office 2007



"Ron de Bruin" wrote:

> Hi Rick
>
>
> Try this
>
> hlink.Parent.Address
>
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Rick S." <(E-Mail Removed)> wrote in message news:A9AEF8F6-7870-42B3-BD0E-(E-Mail Removed)...
> >I have this code from one of you guru's (pretty sure it was Tom O.), but I do
> > not know how to get the cell.address of the hyperlink being tested.
> >
> > '==========
> > Sub ChangeLink()
> > Dim hlink As Hyperlink
> > Dim s As String
> > Dim c As String
> >
> > For Each hlink In ActiveSheet.Hyperlinks
> > s = hlink.Address 'is path of hyperlink doc.
> > If Left(s, 5) = "SPECS" Then
> > s = "=Hyperlink" & "(\\ENGINEERING\PRODUCTION\Qadocs\SPECS\)"
> > 'add code to place new link in cell of hyperlink being tested
> > End If
> > Next
> > End Sub
> > '==========
> >
> > All help is appreciated.
> >
> > --
> > Regards
> >
> > Rick
> > XP Pro
> > Office 2007
> >

>

 
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
How to extract a web address from a hyperlink cell? =?Utf-8?B?RWwgUmViZWxkZQ==?= Microsoft Excel Misc 2 16th Nov 2006 04:44 PM
hyperlink with cell value as part of address chevee55 Microsoft Excel Programming 4 9th Mar 2006 07:17 PM
How make hyperlink refer to cell content rather than cell address. =?Utf-8?B?T211bmVuZQ==?= Microsoft Excel Misc 3 2nd Mar 2006 01:07 AM
Re: Reference cell address of Hyperlink Mike Fogleman Microsoft Excel Programming 1 23rd Aug 2005 04:00 AM
How do you hyperlink a cell address to top of page? Enigman O'Maly Microsoft Excel Worksheet Functions 1 1st Oct 2003 12:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:03 PM.