Office Settings & Configuration

How to Keep an Excel Worksheet Tab Fixed at the Start

Olivia MillerOlivia Miller Nov 10, 2026 869 views

Question details

The user wants to know how to freeze or pin a specific worksheet tab to the beginning of the tab bar so it remains visible while scrolling through other sheets.

How to Keep an Excel Worksheet Tab Fixed at the Start of the Tab Bar
Product
Microsoft Excel
Device & OS
Windows or macOS
Scenario
Navigating a workbook with a large number of sheet tabs where a specific index or summary sheet needs to remain constantly accessible.
Observed behavior
Excel does not have a native built-in feature to freeze or pin a worksheet tab to the tab bar in modern .xlsx files, making it disappear when scrolling through many tabs.
Before you start

Since modern Excel lacks a built-in 'pin tab' feature, you will need to rely on a VBA macro to automatically keep your desired sheet at the front. Ensure your file is eventually saved as a Macro-Enabled Workbook (.xlsm).

Solution 1Recommended

Use a VBA Macro to Keep the Worksheet Tab at the Beginning

Create a VBA script that forces a specific worksheet to automatically move to the first position whenever you activate another sheet.

This automated workaround uses the Workbook_SheetActivate event. Every time you switch to a new tab, the macro instantly repositions your designated 'pinned' sheet back to the far left.

1
Open the VBA Editor

Press ALT + F11 on your keyboard (or OPTION + F11 on Mac) to open the Microsoft Visual Basic for Applications editor.

2
Access the Workbook Code Module

In the Project Explorer pane on the left side, locate your current workbook name and double-click on 'ThisWorkbook'.

3
Insert the VBA Code

Copy and paste the appropriate VBA code into the module window that utilizes 'Private Sub Workbook_SheetActivate(ByVal Sh As Object)'. Specify the exact name of the sheet you want to keep at the start within the code.

4
Save as a Macro-Enabled Workbook

Close the VBA editor. Go to File > Save As, and choose 'Excel Macro-Enabled Workbook (*.xlsm)' from the format dropdown so you do not lose your code.

Use a VBA Macro to Keep the Worksheet Tab at the Beginning
Macro Security: You must have macros enabled in Excel's Trust Center for this solution to run automatically upon reopening the file.
Free Microsoft Office alternative

Manage Large Spreadsheets Easily with WPS Office

While no spreadsheet software natively pins worksheet tabs without macros, WPS Office offers a highly intuitive tabbed interface and robust built-in features to manage complex workbooks smoothly. It fully supports VBA macros, ensuring your automated workarounds run perfectly.

  1. 1. Download and Install: Visit the official WPS website to download and install WPS Office on your Windows or Mac device.
  2. 2. Open Your Workbook: Launch WPS Spreadsheets and seamlessly open your existing .xlsx or .xlsm files without format loss.
  3. 3. Utilize Advanced Navigation: Take advantage of WPS Office's smooth sheet management and enable macros to run your tab-pinning VBA scripts.
Fully compatible with Microsoft Excel formats (.xlsx, .xlsm, .xls, .csv).Intuitive and modernized interface for managing multiple worksheets effortlessly.Advanced support for VBA and macros for complex automation tasks.Lightweight, fast, and completely free to download.
QA img-9

Frequently Asked Questions

Why is the freeze tab feature unavailable in modern .xlsx files?

Pinning or freezing sheet tabs has never been a native, standard feature in modern .xlsx files. Any similar behavior experienced in older .xls files was likely achieved through specific third-party add-ins or custom macros.

Will the VBA solution work on Excel for the Web or mobile apps?

No. VBA macros are only supported in the desktop versions of Excel for Windows and macOS. The script will not run, and the tab will not remain fixed, if you open the workbook in Excel for the Web, iOS, or Android.

Is there a keyboard shortcut to instantly scroll to the first worksheet tab?

Yes. While there isn't a shortcut to activate the first sheet directly, you can hold down 'Ctrl' (or 'Cmd' on Mac) and left-click the left navigation arrow at the bottom-left corner of the window. This instantly scrolls your tab bar all the way to the first sheet.

Can I freeze multiple tabs at the same time using VBA?

Yes. You can expand the VBA script to move multiple specific worksheets to the beginning of the tab bar array whenever another sheet is activated, allowing you to keep a group of summary sheets always accessible on the left.