Denial
Structural
- Jun 3, 2003
- 914
I am using Excel 2003. One of my more elaborate spreadsheets has an entire worksheet that consists of nothing more than a large amount of text devoted to documentation. The text is structured in sections, and each section has a heading in column A of an otherwise blank row preceding the body of the text on that subject.
Suppose for the purposes of the following discussion that one of my sections of text is headed "How to delete an item", and that this heading is in cell A253 of the worksheet (as text).
To make the mass of documentation slightly more understandable, I initially created a "table of contents" at the top of the worksheet. In this table's first and simplest form, the entry for the above hypothetical section consisted simply of a cell that contained the formula
[tt]=A253[/tt]
placed (say) in cell A9.
This was fine as far as it went, but later I decided I wanted to provide the ability for my user to click on cell A9 then have the screen view "move" so that it includes cell A253. This I achieved by placing in cell A9 the formula
[tt]=HYPERLINK("#"&CELL("address",A253),A253)[/tt]
An improvement. However, because this process involves movement down the worksheet, my selected cell ends up at the bottom of the screen. This means the user cannot see the associated body of text without scrolling down some more. I like to pamper my user, so I added a further refinement, changing the formula in cell A9 to
[tt]=HYPERLINK("#"&ADDRESS(ROW(A253)+25,COLUMN(A253),4),A253)[/tt]
A further improvement. My precious user can now see the first 25 lines of the text he is seeking without further exercise. But the selected cell is now at some non-distinguished line in the text, and the section heading is not at the top of the screen.
I am fully aware that "the best is the enemy of the good". However, contrary to Voltaire's dictum, I would ideally like to set things up so that when my user clicks on cell A9 the screen immediately jumps to a view where cell A253 is at the top left corner and is the selected cell.
I have a horrible suspicion that this will be impossible to achieve, but before I give up I thought I should offer this forum the opportunity to prove me wrong.
Suppose for the purposes of the following discussion that one of my sections of text is headed "How to delete an item", and that this heading is in cell A253 of the worksheet (as text).
To make the mass of documentation slightly more understandable, I initially created a "table of contents" at the top of the worksheet. In this table's first and simplest form, the entry for the above hypothetical section consisted simply of a cell that contained the formula
[tt]=A253[/tt]
placed (say) in cell A9.
This was fine as far as it went, but later I decided I wanted to provide the ability for my user to click on cell A9 then have the screen view "move" so that it includes cell A253. This I achieved by placing in cell A9 the formula
[tt]=HYPERLINK("#"&CELL("address",A253),A253)[/tt]
An improvement. However, because this process involves movement down the worksheet, my selected cell ends up at the bottom of the screen. This means the user cannot see the associated body of text without scrolling down some more. I like to pamper my user, so I added a further refinement, changing the formula in cell A9 to
[tt]=HYPERLINK("#"&ADDRESS(ROW(A253)+25,COLUMN(A253),4),A253)[/tt]
A further improvement. My precious user can now see the first 25 lines of the text he is seeking without further exercise. But the selected cell is now at some non-distinguished line in the text, and the section heading is not at the top of the screen.
I am fully aware that "the best is the enemy of the good". However, contrary to Voltaire's dictum, I would ideally like to set things up so that when my user clicks on cell A9 the screen immediately jumps to a view where cell A253 is at the top left corner and is the selected cell.
I have a horrible suspicion that this will be impossible to achieve, but before I give up I thought I should offer this forum the opportunity to prove me wrong.