How to Keep an Excel Worksheet Tab Fixed at the Start
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.

- 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.
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).
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.
Press ALT + F11 on your keyboard (or OPTION + F11 on Mac) to open the Microsoft Visual Basic for Applications editor.
In the Project Explorer pane on the left side, locate your current workbook name and double-click on 'ThisWorkbook'.
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.
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 the Built-in 'Activate' Menu for Quick Navigation
If you cannot use VBA or prefer not to enable macros, you can use Excel's hidden sheet navigation menu to instantly jump to your main tab.
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. Download and Install: Visit the official WPS website to download and install WPS Office on your Windows or Mac device.
- 2. Open Your Workbook: Launch WPS Spreadsheets and seamlessly open your existing .xlsx or .xlsm files without format loss.
- 3. Utilize Advanced Navigation: Take advantage of WPS Office's smooth sheet management and enable macros to run your tab-pinning VBA scripts.

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.




