Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Links / December 2003

Tip: Looking for answers? Try searching our database.

Updating hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy Wilkinson - 02 Dec 2003 16:06 GMT
Hi all,

I have an excel spreadsheet that references numerous other
spreadsheets via hyperlinks. The problem is the xls was
designed with the supporting spreadsheets in a defined
structure, i.e. c:\work\2003\stuff\stuff.xls

Is there any way that I can update all of the hyperlinks
at the same time to reflect a year change?? For example,
copy the entire structure to c:\work\2004 etc .... and
then update all of the hyperlinks to be 2004, not 2003.

Thanks in advance

Andy Wilkinson
Bill Manville - 03 Dec 2003 01:16 GMT
> Is there any way that I can update all of the hyperlinks
> at the same time to reflect a year change?? For example,
> copy the entire structure to c:\work\2004 etc .... and
> then update all of the hyperlinks to be 2004, not 2003.

Sub UpdateHyperlinks()
Dim H As Hyperlink
For Each H In ActiveSheet.Hyperlinks
 H.Address = Replace(H.Address, "2003", "2004")
Next
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.