Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Sort & lose links

Hi,

I have worksheets containing links to the main page and vice versa. The
links are inserted by vba. The main page needs to be in order. How can I
sort and not lose my links? I am assuming R[3]C[-2] might do it? In this
case the columns will be constant but the rows will change, so R is a
variable. How would I do this using a variable since I don't know where the
row will be? Or would I still lose my links?

I tried this but did not get the results I was looking for.

"'!R[-" & NextRow - 2 & "]C5"

The cell containing the link is in row 2 of the worksheet.

Thanks for your help.
--

Karen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 333
Default Sort & lose links

Hi,

I got it. It should have been plus not minus.

R[+" & NextRow - 2 & "]C5

duuuuuuuhhh!!

--

Karen


"Karen53" wrote:

Hi,

I have worksheets containing links to the main page and vice versa. The
links are inserted by vba. The main page needs to be in order. How can I
sort and not lose my links? I am assuming R[3]C[-2] might do it? In this
case the columns will be constant but the rows will change, so R is a
variable. How would I do this using a variable since I don't know where the
row will be? Or would I still lose my links?

I tried this but did not get the results I was looking for.

"'!R[-" & NextRow - 2 & "]C5"

The cell containing the link is in row 2 of the worksheet.

Thanks for your help.
--

Karen

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
Lose Relative reference on sort JICDB Excel Worksheet Functions 0 September 25th 09 10:22 PM
Lose relative connection in formula on sort JICDB Excel Worksheet Functions 2 September 11th 09 09:38 PM
Can I sort and not lose reference to the cell? RedHead 1 Excel Discussion (Misc queries) 3 February 3rd 09 03:37 AM
Lists lose formatting on sort - Mac only? cory_atticus Excel Discussion (Misc queries) 0 August 7th 06 01:54 PM
cells lose relativity to other WorkSheets after data sort? Ed Murray - ALPCO Excel Worksheet Functions 1 November 8th 04 07:02 PM


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

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

About Us

"It's about Microsoft Excel"