Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Getting HyperLinked Cell to Appear at the Top of the Screen

I am inserting hyperlinks in my file. No problem with setting up a
range linked to the hyperlink, so that the cursor jumps to the range.
(I am doing the hyperlinks from a set of instruction headings at the
top of a sheet, to the actual paragraphs further down the sheet that
explain certain things in the model.)

What I find is that the cursor lands on the correct spot, but this
spot is at the bottom of the screen, so the user has to do a page down
to see the paragraphs that follow. Is there a way to make the place
where the cursor lands shift automatically so that it is at the top
left of the screen?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting HyperLinked Cell to Appear at the Top of the Screen

What version of Excel. If using Excel 2000 or later, you might use the
followhyperlink event.

--
Regards,
Tom Ogilvy

"John Tjia" wrote in message
om...
I am inserting hyperlinks in my file. No problem with setting up a
range linked to the hyperlink, so that the cursor jumps to the range.
(I am doing the hyperlinks from a set of instruction headings at the
top of a sheet, to the actual paragraphs further down the sheet that
explain certain things in the model.)

What I find is that the cursor lands on the correct spot, but this
spot is at the bottom of the screen, so the user has to do a page down
to see the paragraphs that follow. Is there a way to make the place
where the cursor lands shift automatically so that it is at the top
left of the screen?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Getting HyperLinked Cell to Appear at the Top of the Screen

I'm using Excel 2002 SP-1.

The followhyperlink event is a VBA code? So far I am using the
Insert, Hyperlink sequence on the menu bar. Where do I look to start
learning the followhyperlink event?


"Tom Ogilvy" wrote in message ...
What version of Excel. If using Excel 2000 or later, you might use the
followhyperlink event.

--
Regards,
Tom Ogilvy

"John Tjia" wrote in message
om...
I am inserting hyperlinks in my file. No problem with setting up a
range linked to the hyperlink, so that the cursor jumps to the range.
(I am doing the hyperlinks from a set of instruction headings at the
top of a sheet, to the actual paragraphs further down the sheet that
explain certain things in the model.)

What I find is that the cursor lands on the correct spot, but this
spot is at the bottom of the screen, so the user has to do a page down
to see the paragraphs that follow. Is there a way to make the place
where the cursor lands shift automatically so that it is at the top
left of the screen?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Getting HyperLinked Cell to Appear at the Top of the Screen

right click on the sheet tab (with the hyperlink) and select View code.

In the left dropdown, select worksheet. In the right dropdown select
followhyperlink

This will put the declaration for th event in the module.

It has an argument target which is a hyperlink object. It will hold a
reference to the hyperlink that triggered the event.

Private Sub FollowHyperlink( Target as Hyperlink)
msgbox Target.Range.Address
End Sub

will display the cell address of the hyperlink as an example.

To position the target

Private Sub FollowHyperlink( Target as Hyperlink)
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.ScrollColumn = ActiveCell.column
End Sub

Worked for me.

--
Regards,
Tom Ogilvy




John Tjia wrote in message
om...
I'm using Excel 2002 SP-1.

The followhyperlink event is a VBA code? So far I am using the
Insert, Hyperlink sequence on the menu bar. Where do I look to start
learning the followhyperlink event?


"Tom Ogilvy" wrote in message

...
What version of Excel. If using Excel 2000 or later, you might use the
followhyperlink event.

--
Regards,
Tom Ogilvy

"John Tjia" wrote in message
om...
I am inserting hyperlinks in my file. No problem with setting up a
range linked to the hyperlink, so that the cursor jumps to the range.
(I am doing the hyperlinks from a set of instruction headings at the
top of a sheet, to the actual paragraphs further down the sheet that
explain certain things in the model.)

What I find is that the cursor lands on the correct spot, but this
spot is at the bottom of the screen, so the user has to do a page down
to see the paragraphs that follow. Is there a way to make the place
where the cursor lands shift automatically so that it is at the top
left of the screen?



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Getting HyperLinked Cell to Appear at the Top of the Screen

Thanks very much. Works like a charm!

"Tom Ogilvy" wrote in message ...
right click on the sheet tab (with the hyperlink) and select View code.

In the left dropdown, select worksheet. In the right dropdown select
followhyperlink

This will put the declaration for th event in the module.

It has an argument target which is a hyperlink object. It will hold a
reference to the hyperlink that triggered the event.

Private Sub FollowHyperlink( Target as Hyperlink)
msgbox Target.Range.Address
End Sub

will display the cell address of the hyperlink as an example.

To position the target

Private Sub FollowHyperlink( Target as Hyperlink)
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.ScrollColumn = ActiveCell.column
End Sub

Worked for me.

--
Regards,
Tom Ogilvy







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
Merging a hyperlinked cell with a non-hyperlinked cell? Alex Excel Discussion (Misc queries) 1 September 11th 08 03:14 PM
Setting hyperlinked cells to be displayed at the top of the screen taliqmassaman Excel Discussion (Misc queries) 0 August 4th 06 05:10 PM
bring hyperlinked cell to top of page Tina Excel Worksheet Functions 7 February 16th 06 04:11 PM
Want to click on 1 cell and have it hyperlinked to a highlighted c GutterPunk Excel Worksheet Functions 1 January 31st 05 04:20 AM
How can I cause a cell which is hyperlinked to to display in bold. Chris G. Excel Worksheet Functions 0 January 6th 05 03:15 PM


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