Tested in Excel 365 (16.8730.2046) 64-bit
Creates a sheet with all sheets names and flags those that are protected or hidden.
- Public Sub ListSheetsProperties()
- Dim i
- Sheets.Add Before:=Sheets(1)
- ActiveSheet.Name = "File Info"
- For i = 1 To Sheets.Count
- Cells(i + 1, 1).Value = Sheets(i).Name
- If Sheets(i).Visible = False Then Cells(i + 1, 2).Value = "Hidden"
- If Sheets(i).ProtectContents Then Cells(i + 1, 3).Value = "Protected"
- Next i
- Range("A1:C1").Value=Split("Sheet|Visibility|Protectioon","|")
- End Sub