Function Problems

How to Make an Excel Hyperlink Display the Destination Like Go To

Kushani NimanthikaKushani Nimanthika Oct 10, 2026 869 views

Question details

The user wants an Excel hyperlink to automatically scroll the worksheet so that the destination cell is brought into the visible area, mimicking the behavior of the Go To command.

How to Make an Excel Hyperlink Display the Destination Like Go To
Product
Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Navigating a large worksheet using hyperlinks to jump to specific cells or sections.
Observed behavior
Clicking the hyperlink selects the destination cell, but it does not automatically scroll the window to bring the cell into view or place it at the top of the worksheet.
Before you start

If you plan to use the VBA macro solution, ensure that your workbook is saved as a Macro-Enabled Workbook (.xlsm) and that macros are enabled in your security settings.

Solution 1Recommended

Use a VBA Macro to Automatically Scroll to the Destination

By adding a simple VBA event script, Excel will automatically scroll the target cell to the top-left of your visible window whenever a hyperlink is clicked.

The built-in HYPERLINK function does not change the scroll position of your screen. To force the screen to scroll directly to the linked cell, you need to use a Worksheet_FollowHyperlink VBA event.

1
Open the VBA Editor

Right-click on the sheet tab containing your hyperlinks and select 'View Code', or press Alt + F11 to open the Microsoft Visual Basic for Applications window.

2
Insert the Event Code

In the code window for your specific worksheet, choose 'Worksheet' from the left dropdown and 'FollowHyperlink' from the right dropdown.

3
Add the Scrolling Commands

Between the 'Private Sub' and 'End Sub' lines, type: ActiveWindow.ScrollRow = Target.Range.Row and on the next line type: ActiveWindow.ScrollColumn = Target.Range.Column.

4
Save and Test

Close the VBA editor and click one of your hyperlinks. The window will now automatically scroll to place the destination cell at the top-left of your screen.

Use a VBA Macro to Automatically Scroll to the Destination
Macro-Enabled Format: Remember to 'Save As' and choose Excel Macro-Enabled Workbook (*.xlsm) so your VBA code is not lost when you close the file.
Advanced Spreadsheet Tool

Manage Large Datasets Effortlessly with WPS Spreadsheet

WPS Office provides powerful features for navigating extensive data. You can easily insert hyperlinks, lock layouts with Freeze Panes, and run VBA macros exactly as you would in Microsoft Excel.

  1. 1. Open Your Workbook: Launch WPS Spreadsheet and open your existing data file.
  2. 2. Create Navigation Links: Go to the Insert tab and click 'Hyperlink' to link to other sheets or cells.
  3. 3. Apply View Settings: Navigate to the View tab to use Freeze Panes, keeping your headers or navigation menus visible.
  4. 4. Run Macros: Access the Developer tab to insert or run VBA code to automate your scrolling behavior.
Seamlessly compatible with Microsoft Excel (.xlsx and .xlsm formats)Supports VBA macros for automated navigation and workflowsFeatures advanced view controls like Freeze Panes and Split WindowFree, lightweight, and features an intuitive tabbed interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the standard HYPERLINK function not scroll to the target cell?

By design, the built-in HYPERLINK function simply selects the target cell. It does not alter the window's scroll position or bring the cell to the top of the screen unless the cell is entirely out of the active display range.

Will the VBA scrolling solution work if I share the file with others?

Yes, but you must save the file as a Macro-Enabled Workbook (.xlsm). Additionally, the recipient must choose to 'Enable Content' or allow macros when opening the file on their computer.

Can I use the Name Box to quickly jump and scroll to a cell without macros?

Yes. Typing a specific cell reference (such as Z1000) into the Name Box (located to the left of the formula bar) and pressing Enter works exactly like the Go To command, immediately bringing that cell into view.

Does WPS Office support VBA macros for hyperlinks?

Yes, WPS Office Pro and advanced versions fully support VBA macros, allowing you to use the Worksheet_FollowHyperlink event to create auto-scrolling hyperlinks just like in Microsoft Excel.