• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to show nth row as first visible row on the screen?

inddon

Member
Hello There,

I am writing a 'User Manual' on how to use the workbook. It includes few/several topics on the second row (Freeze pane on third row).

Each Topic has a heading and below is it's explanation.

On mouse click on a 'Topic', it should bring up/display the Topic on the first visible row on the screen (attached screenshot)

Eg.
1. Topic : How to Use the workbook (on Row 100)
Explanation: From Row 101-110
2. Topic : How to Import Data (on Row 200)
Explanation: From Row 201-210

From Rows 1-50 (blank) is visible on the screen.

When I click on Topic 'How to Use the Workbook', it should show Row 100 as the first visible row on the screen.

This is like how the navigation click works on websites.


Attached is a sample workbook for your reference.

Could you please advise how this could be achieved using VBA/formulas or any any other means?

Look forward to hearing from you.


Many thanks & regards,
Don
 

Attachments

  • Show row as first visible row on the screen.jpg
    Show row as first visible row on the screen.jpg
    104.9 KB · Views: 10
  • Sample Workbook Navigation.xlsx
    10 KB · Views: 2
Hi:

Use hyperlinks as attached.

Thanks
 

Attachments

  • Sample Workbook Navigation.xlsx
    10.1 KB · Views: 4
Hi:

Use hyperlinks as attached.

Thanks


Hi Nebu,

Thank you for your reply.

Hyperlink partially works. It places the cursor on the row of the Topic, but does not make the Topic row as the first visible top row in the screen (attached test case print screen shots) That is what I am looking for.

Any other option you might think of?


Regards,
Don
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    283.8 KB · Views: 3
Hi:

Use the following code
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Range.Address = "$B$2:$E$2" Then Application.Goto Range("A100"): Application.Goto ActiveCell, True
If Target.Range.Address = "$G$2:$I$2" Then Application.Goto Range("A200"): Application.Goto ActiveCell, True
End Sub

Thanks
 

Attachments

  • Sample Workbook Navigation.xlsm
    16.1 KB · Views: 2
Hi:

Use the following code
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
If Target.Range.Address = "$B$2:$E$2" Then Application.Goto Range("A100"): Application.Goto ActiveCell, True
If Target.Range.Address = "$G$2:$I$2" Then Application.Goto Range("A200"): Application.Goto ActiveCell, True
End Sub

Thanks


Thank you Nebu
 
Back
Top