Open a Workbook to a Specific Sheet

Sometimes you need to open your workbook be started on a specific worksheet. With this macro, if a user is working with your workbook, they can’t go astray because the workbook starts on the exact worksheet it needs to.

Macro Code

Private Sub Workbook_Open()
'Step 1: Select the specified sheet
End Sub

How This Macro Works

This macro uses the workbook’s Open event to start the workbook on the specified sheet when the workbook is opened.
The macro explicitly names the sheet we want to jump — Sheet2, in this case, when it’s opened.

How to Use This Macro

To implement this macro, you need to copy and paste it into the Workbook Open event code window. Placing the macro here allows it to run each time the workbook opens.

  1. Activate the Visual Basic Editor by pressing ALT+F11.
  2. In the Project window, find your project/workbook name and click the plus sign next to it in order to see all the sheets.
  3. Click ThisWorkbook.
  4. Select the Open event in the Event drop-down list.Workbook Open Event
  5. Type or paste the code in the newly created module, modifying the sheet name (if necessary) .

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>