VBA & Macro Problems

Keep a Specific Excel Worksheet First When a Workbook Opens

Algirdas JasaitisAlgirdas Jasaitis Nov 18, 2026 868 views

Question details

The user wants a specific worksheet to appear first when an Excel workbook opens.

Keep a Specific Excel Worksheet First When a Workbook Opens
Product
Microsoft Excel
Device & OS
not provided
Scenario
The workbook should open on a chosen worksheet, such as Summary, or have that worksheet's tab placed first.
Observed behavior
A Workbook_Open macro can activate the chosen worksheet; changing the physical tab order is a separate action.
Before you start

Open the workbook in desktop Excel and note the exact name of the worksheet you want to use. Make sure the worksheet is visible and that you can enable macros from a trusted source.

Solution 1Recommended

Activate a Specific Worksheet When Excel Opens the Workbook

Use a Workbook_Open event to display the chosen worksheet whenever the workbook opens with macros enabled.

1
Open the VBA editor

In Excel, open the Developer tab and select Visual Basic. If Developer is hidden, enable it through File > Options > Customize Ribbon.

2
Open ThisWorkbook

In the VBA editor's Project Explorer, find your workbook and double-click ThisWorkbook to open its code window.

3
Add the open event

In the ThisWorkbook code window, enter: Private Sub Workbook_Open() Worksheets("Summary").Activate End Sub. Replace Summary with the exact name of your worksheet.

4
Save and test

Select File > Save As and choose Excel Macro-Enabled Workbook (*.xlsm). Close and reopen the file, then enable macros if prompted and if you trust the workbook.

Activate a Specific Worksheet When Excel Opens the Workbook
Activation does not move the tab: This macro selects the worksheet but does not change its position in the tab row. It will not run if macros are blocked or disabled.
Free Microsoft Office alternative

Navigate Spreadsheet Worksheets with WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening and working with Excel spreadsheets. It supports common Office formats for easier migration, though it does not fix Excel's Workbook_Open behavior.

Navigate worksheets using a familiar spreadsheet interfaceOpen and edit Excel XLSX filesUse a free, lightweight office suiteWork with common Word and PowerPoint formats alongside spreadsheets
microsoft office alternative - wps office

Frequently Asked Questions

Can Excel freeze a worksheet tab in the first position?

Excel does not freeze worksheet tabs in place. You can move a tab to the beginning by right-clicking it and selecting Move or Copy, or use a macro to activate it when the workbook opens.

Why did the worksheet-opening macro not run?

Check that the Workbook_Open procedure is in ThisWorkbook, the file is saved as .xlsm, and macros are enabled for the trusted workbook. Also verify that the worksheet name in the code matches a visible sheet.

Can I activate a worksheet by its position instead of its name?

Yes. In the Workbook_Open procedure, use Sheets(2).Activate to select the second sheet. Its position can change if sheets are moved, so a name is often more reliable.

How can I move the Summary tab first with VBA?

In a VBA procedure, use Worksheets("Summary").Move Before:=Worksheets(1). This changes the physical tab order; add Worksheets("Summary").Activate if you also want to select it.