Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Enz Enz is offline
external usenet poster
 
Posts: 21
Default Hyperlinks after a SORT

I having a problem when trying to create a 2 tab excel sheet, with
sort sequences that are different between the 2 tabs.

Tab1 contains the data that is used to generate Tab2 - so I have been
sorting Tab1 to begin in the sequence desired for Tab2. And after
completing formatting Tab2 then I sort Tab1. Once this done, the
hyperlinks that got from Tab 1 to Tab 2 still work, but the ones from
Tab2 to Tab 1 no longer work.

Is there an easy way of resetting the invalid hyperlinks in the Tab2?

I have thought of going through a final loop of the data on Tab1 over
the established hyperlinks to Tab2 and somehow obtaining the location
cell on Tab2 that needs to be changed, and then changing the hyperlink
on Tab2 to the correct new location.

I have not yet been able to obtain which cell on Tab2 needs to be
corrected based on the formulas I have been trying (namely
ActiveCell.Hyperlinks.Item(1).Address - but this is always empty for
some reason).

Not sure if this approach is the best.

Thanks in advance,
Enzo

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Hyperlinks after a SORT

try
ActiveCell.Hyperlinks.Item(1).SubAddress

Also, look at the Hyperlink worksheet function in Excel help. It will sort
like any other worksheet function and may be what you are looking
for/simplify you life.

--
Regards,
Tom Ogilvy


"Enz" wrote:

I having a problem when trying to create a 2 tab excel sheet, with
sort sequences that are different between the 2 tabs.

Tab1 contains the data that is used to generate Tab2 - so I have been
sorting Tab1 to begin in the sequence desired for Tab2. And after
completing formatting Tab2 then I sort Tab1. Once this done, the
hyperlinks that got from Tab 1 to Tab 2 still work, but the ones from
Tab2 to Tab 1 no longer work.

Is there an easy way of resetting the invalid hyperlinks in the Tab2?

I have thought of going through a final loop of the data on Tab1 over
the established hyperlinks to Tab2 and somehow obtaining the location
cell on Tab2 that needs to be changed, and then changing the hyperlink
on Tab2 to the correct new location.

I have not yet been able to obtain which cell on Tab2 needs to be
corrected based on the formulas I have been trying (namely
ActiveCell.Hyperlinks.Item(1).Address - but this is always empty for
some reason).

Not sure if this approach is the best.

Thanks in advance,
Enzo


Reply
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
Hyperlinks change during sort Richard Excel Discussion (Misc queries) 0 March 31st 09 02:13 PM
Excel losing hyperlinks when I sort the worksheet Scott Bass Links and Linking in Excel 3 November 7th 08 09:40 AM
Auto-Sort Hyperlinks Ben Dummar Excel Discussion (Misc queries) 0 April 9th 07 08:50 PM
Sort hyperlinks by time Martin Wheeler Excel Programming 3 March 1st 06 12:00 AM
How do I sort rows with hyperlinks? SKTAZZ Excel Discussion (Misc queries) 1 March 16th 05 05:00 PM


All times are GMT +1. The time now is 11:24 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"