Thank you for the quick replies. Let me clarify exactly what I need. I apologize I did not specify earlier. The macro needs to Look at C3 of each sheet. If there is no value in C3, it needs to hide that sheet. If there is a value, It needs the tab to be renamed to the value in C3. I have the code to change the tab name, but I do not know how to incorporate the hiding function.
Private Sub Workbook_Open()
Dim wSheet As Worksheet
On Error Resume Next
For Each wSheet In Me.Worksheets
If wSheet.Range("C3") = "" Then
wSheet.Name = "Sheet" & wSheet.Index
Else
wSheet.Name = Format(wSheet.Range("C3"), "mmm dd, yyyy")
End If
Next wSheet
On Error GoTo 0
End Sub
Bookmarks