LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default repair hyperlinks / testing for invalid address

I find hyperlinks are useful in workbooks, but you have to avoid
renaming worksheets as links don't update.

I've been trying to work out a way of identifying broken hyperlinks in
workbooks, and then go onto offering some way of repairing the link.
However, I've been unable to overcome an early hurdle...

My approach is to:

1 cycle through all worksheets in the workbook concerned
2 cycle through the all hyperlinks within each worksheet
3 for each hyperlink, test whether destination address
(Hyperlinks(i).SubAddress) is valid.

and here lies my problem...

i was after a quick test, something along the lines of:

If IsError ( Range(Hyperlinks(i).SubAddress) ) Then
' *Fix*
End If

However, the error caused by having an invalid range stops my
procedure, whereas I would like it to carry on regardless, only doing
something different when it is in invalid.

Any insights into this problem would be greatly appreciated.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Valid Hyperlinks being reported as Invalid Steve Links and Linking in Excel 0 December 23rd 08 04:45 AM
Testing Hyperlinks DDawson Excel Programming 2 November 27th 06 05:03 PM
I need to repair an invalid hyperlink S. Banks - Admin. Asst. Excel Worksheet Functions 1 October 23rd 06 03:08 PM
Why would hyperlinks in a spreadsheet change to an invalid path? LisaW Excel Discussion (Misc queries) 1 September 19th 06 05:38 PM
Invalid internet address [email protected] Excel Programming 1 January 17th 06 12:27 PM


All times are GMT +1. The time now is 07:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"