Fixing the 'Start' Worksheet in Excel File to Remain Constantly Visible

Martin, Heidi (SE GP T SP PS) 571 Reputation points
2024-02-09T07:45:32.1733333+00:00

Good morning, I have an Excel file that contains numerous worksheets. My objective is to keep the first worksheet, named "Start," constantly visible. Could you please guide me on how to accomplish this task?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tanay Prasad 2,250 Reputation points
    2024-02-09T08:36:02.19+00:00

    Unfortunately, Excel does not have a built-in option to pin specific tabs. However, you can create a VBA macro to achieve this. Here's the eg of how to implement it-

    Private Sub Workbook_SheetActivate(ByVal Sh As Object)
        Dim ws As Worksheet
        Dim startSheet As Worksheet
        
        'Set the reference to the "Start" worksheet
        Set startSheet = ThisWorkbook.Worksheets("Start")
        
        'Loop through each worksheet tab
        For Each ws In ThisWorkbook.Worksheets
            If ws.Name = "Start" Then
                'Move the "Start" worksheet to the left-most position
                ws.Move Before:=ThisWorkbook.Sheets(1)
                Exit For
            End If
        Next ws
    End Sub
    
    

    Apart from this, there might be third-party Excel add-ins that offer more advanced tab management features, including the ability to pin tabs. Best Regards.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.