Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Hyperlink to move the cursor to the top of the frozen panes

Hello,

I have a worksheet that has hyperlinks to other parts of the same sheet. I
have 6 frozen panes on top on the sheet. I would like to have the cursor
appear on the top of the screen (just below the frozen panes) rather than
bottom of the screen. I have checked previous posts and tried this code on
the worksheet:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Application.Goto ActiveCell, Scroll:=True
End Sub

For some reason, nothing happens. It's the same if there was no code. Could
I be doing something wrong? Is there something I would need to make specific
for my worksheet, eg. name of the Worksheet? My workshhet is called Inputs.

Many thanks in advance for your help.

--
Johanna
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Hyperlink to move the cursor to the top of the frozen panes

again, nothing happens, I am not sure why. I double click on the sheet tab,
paste it into the sheet VB code window and nothing happens. No error messages
but the screen doesn't move either. The other macros in the workbook are
working ok. Any ideas what I might be doing wrong?

--
Johanna


"Don Guillett" wrote:

Sub CtrlHome()
ActiveWindow.VisibleRange.Resize(1, 1).Select
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Johanna Gronlund" wrote in
message ...
Hello,

I have a worksheet that has hyperlinks to other parts of the same sheet. I
have 6 frozen panes on top on the sheet. I would like to have the cursor
appear on the top of the screen (just below the frozen panes) rather than
bottom of the screen. I have checked previous posts and tried this code on
the worksheet:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Application.Goto ActiveCell, Scroll:=True
End Sub

For some reason, nothing happens. It's the same if there was no code.
Could
I be doing something wrong? Is there something I would need to make
specific
for my worksheet, eg. name of the Worksheet? My workshhet is called
Inputs.

Many thanks in advance for your help.

--
Johanna


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Hyperlink to move the cursor to the top of the frozen panes

use sub as written and assign to a button

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Johanna Gronlund" wrote in
message ...
again, nothing happens, I am not sure why. I double click on the sheet
tab,
paste it into the sheet VB code window and nothing happens. No error
messages
but the screen doesn't move either. The other macros in the workbook are
working ok. Any ideas what I might be doing wrong?

--
Johanna


"Don Guillett" wrote:

Sub CtrlHome()
ActiveWindow.VisibleRange.Resize(1, 1).Select
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Johanna Gronlund" wrote in
message ...
Hello,

I have a worksheet that has hyperlinks to other parts of the same
sheet. I
have 6 frozen panes on top on the sheet. I would like to have the
cursor
appear on the top of the screen (just below the frozen panes) rather
than
bottom of the screen. I have checked previous posts and tried this code
on
the worksheet:

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Application.Goto ActiveCell, Scroll:=True
End Sub

For some reason, nothing happens. It's the same if there was no code.
Could
I be doing something wrong? Is there something I would need to make
specific
for my worksheet, eg. name of the Worksheet? My workshhet is called
Inputs.

Many thanks in advance for your help.

--
Johanna


.


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
Print Frozen Panes? CyberSockeye Excel Discussion (Misc queries) 2 April 23rd 08 10:23 PM
frozen panes jmack Excel Discussion (Misc queries) 2 May 11th 07 09:00 AM
frozen panes print top of each page jmack New Users to Excel 2 May 10th 07 11:34 PM
Drop down list & frozen panes naive14 Excel Discussion (Misc queries) 3 February 9th 07 12:49 PM
move to adjacent cell with panes frozen Aaron Excel Discussion (Misc queries) 1 October 5th 06 10:45 AM


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