Macro to go to a specific worksheet

Anonymous
2025-04-08T13:24:04+00:00

How to create a Macro to go to a specific worksheet, when workbook opens.

Microsoft 365 and Office | Excel | For home | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Andreas Killer 143.7K Reputation points Volunteer Moderator
    2025-04-08T13:41:20+00:00

    Place the code below into the code module ThisWorkbook.

    Andreas.

    Private Sub Workbook_Open()
      Worksheets("MySpecificSheetName").Activate
    End Sub
    
    0 comments No comments
  2. Anonymous
    2025-04-08T14:19:00+00:00

    super fast reply: thank you. will do so immediately.

    Ken

    0 comments No comments
  3. Anonymous
    2025-04-08T17:59:24+00:00

    Didn't work. The sheet name on the Tab is BUDGETF-MONTHLY EXPENSES 2025. I saved the workbook with a different worksheet showing, then,

    I tried in lower case, with and without the hyphen, with and without the spaces between words. Still opens to a different worksheet.

    0 comments No comments
  4. triptotokyo-5840 36,616 Reputation points Volunteer Moderator
    2025-04-08T19:27:15+00:00

    Didn't work. The sheet name on the Tab is BUDGETF-MONTHLY EXPENSES 2025. I saved the workbook with a different worksheet showing, then,

    I tried in lower case, with and without the hyphen, with and without the spaces between words. Still opens to a different worksheet.

    Code is:-

    Private Sub Workbook_Open()

      Worksheets(2).Select

    End Sub

    Note how the number 2 corresponds to the name that you’ve given to your Worksheet (see image below). 

     ![](https://learn-attachment.microsoft.com/api/attachments/d9335158-1bda-4124-8be3-5c18f19f1ed4?platform=QnA

    0 comments No comments
  5. Andreas Killer 143.7K Reputation points Volunteer Moderator
    2025-04-09T03:54:22+00:00

    Didn't work. The sheet name on the Tab is BUDGETF-MONTHLY EXPENSES 2025. I saved the workbook with a different worksheet showing, then,

    I tried in lower case, with and without the hyphen, with and without the spaces between words. Still opens to a different worksheet.

    Means the code did not run. If you tried it without spacing (or the sheet name misspelled) you would get a RTE 9!

    It's up to you to enable your macros.

    Enable or disable macros in Office files - Office Support

    Andreas.

    0 comments No comments