Solved

Worksheet Focus from hyperlink

Posted on 2011-02-16
5
360 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:Michael74
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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now