Forum Discussion
RiverKing
Dec 09, 2020Copper Contributor
Positioning a row at the top of the window via an internal link
On a worksheet with many rows of text, I help the user navigate via internal links to topic-specific, named cells. The user just clicks on a topic to display the topic. This works very nicely excep...
- Dec 09, 2020
Try this. Right click on your worksheet tab, select view code, and paste this into the code module.
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink) Dim cell As Range On Error Resume Next Set cell = ActiveSheet.Range(Target.SubAddress) If Not cell Is Nothing Then Application.Goto ActiveCell, Scroll:=True End If End Sub
Riny_van_Eekelen
Dec 09, 2020Platinum Contributor
RiverKing Perhaps the small piece of code in the attached link is helpful.
https://www.extendoffice.com/documents/excel/5117-excel-active-cell-top-screen.html