Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Worksheet Focus from hyperlink

Posted on 2011-02-16
5
Medium Priority
?
394 Views
Last Modified: 2012-05-11
I want to click on a hyperlink and make it so the sheet it goes to focuses on a specific cell, then I want the cell to be located in the upper left corner of the screen.  So I have the Hyperlink to a specific cell done, I just dont know how to get the sheet to move up, down, left, right to make the focus point I want.

Any help?
0
Comment
Question by:Chris Pfeiffer
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Michael Fowler
ID: 34913309
I am not aware if this can be done using a hyperlink but you could use a button and have a macro to simply select the cell in question
http://excel.tips.net/Pages/T002479_Adding_Buttons_to_Your_Worksheet.html

Michael
0
 
LVL 2

Author Comment

by:Chris Pfeiffer
ID: 34913343
Well right now what I am doing is moving the work sheet to the desired location, then selecting the cell in the bottom right corner of the sheet as the location for my hyperlink to focus on.  The only problem is this will only work for people using the same display setup as me.
0
 
LVL 18

Accepted Solution

by:
Curt Lindstrom earned 2000 total points
ID: 34913397
Try this macro as a sheet macro in the sheet you are linking to if you are linking from a another sheet

Private Sub Worksheet_Activate()
    ActiveWindow.ScrollRow = ActiveCell.Row
    ActiveWindow.ScrollColumn = ActiveCell.Column
End Sub

Regards,
Curt
0
 
LVL 18

Expert Comment

by:Curt Lindstrom
ID: 34913409
Use this macro if you are linking from the same sheet

Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    ActiveWindow.ScrollRow = ActiveCell.Row
    ActiveWindow.ScrollColumn = ActiveCell.Column

End Sub

Regards,
Curt
0
 
LVL 2

Author Closing Comment

by:Chris Pfeiffer
ID: 34913410
Thank you very much!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question