PC Review


Reply
Thread Tools Rate Thread

Change Hyperlink addresses in a worksheet

 
 
LittleAnn
Guest
Posts: n/a
 
      12th Dec 2007
How can I change the address of a hyperlink without having to change the
hyperlinks individually.

I have a worksheet with a few 1000 hyperlinks of the format J:\......... and
want them all changed to M:\.........

Is there an quick way of doing this in one go
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      12th Dec 2007
Sub hyper_changer()
Dim h As Hyperlink
For Each h In ActiveSheet.Hyperlinks
s = h.Address
s2 = Replace(s, "J:\", "M:\")
h.Address = s2
Next
End Sub

--
Gary''s Student - gsnu200761
 
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 Change ALL Hyperlink Addresses in a Column? Terry Microsoft Excel Programming 8 17th Aug 2009 11:23 PM
How Can I Globally Change Hyperlink Addresses? Terry Microsoft Excel Misc 1 15th Aug 2009 03:50 PM
How do I make a global change of Hyperlink addresses? Rick Microsoft Excel Misc 1 16th Jan 2009 04:31 PM
Hyperlink Question -- Change in Worksheet Name? BG Microsoft Excel Worksheet Functions 1 23rd Mar 2008 02:39 PM
hyperlink server addresses change: the address of the site is not valid connie Microsoft Excel Misc 0 6th Oct 2003 08:54 PM


Features
 

Advertising
 

Newsgroups
 


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