/ Published in: Visual Basic
Hide specific worksheets in a workbook that contain a prefix. This example uses "Admin_", although this can be changed easily.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Sub HideAdminSheet() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets If Left(ws.Name, 6) = "Admin_" Then ws.Visible = xlSheetHidden End If Next ws End Sub