A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
You could do this.
Sub CountEm()
Dim ws As Worksheet, i As Long
For Each ws In ActiveWorkbook.Worksheets
i = i - ws.Visible
Next
If i = 1 Then
Sheets("Main Menu").Visible = True
End If
Application.DisplayAlerts = False
ActiveSheet.Delete
Application.DisplayAlerts = True
End Sub