Untitled

Anonymous
plain_text
04/02/2024 3:42 PM
828 B
17
Indexable
Sub sbShowSheets()

    On Error Resume Next

    With ThisWorkbook
        .Sheets("Sheet1").Visible = xlSheetVisible
        .Sheets("Sheet2").Visible = xlSheetHidden
        .Sheets("shtSplash").Visible = xlSheetVeryHidden
    End With

    ThisWorkbook.Saved = True

    On Error GoTo 0
                                               
End Sub

Sub sbHideSheets()

    On Error Resume Next

    With ThisWorkbook
        .Sheets("shtSplash").Visible = xlSheetVisible
        .Sheets("Sheet1").Visible = xlSheetVeryHidden
        .Sheets("Sheet2").Visible = xlSheetVeryHidden
    End With

    On Error GoTo 0

End Sub
Editor is loading...
Leave a Comment