I have Macros that reference tabs that represent each month as in the screen shot below. If I change the names of the tabs for instance "dec" to "DEC24" how do I get the macro screen shot below to auto pick up that tab name?
Dim sht As Worksheet
If Left(sht.Name,3) = "DEC" Then
'do something
End If
Dim sht As Worksheet
For Each sht in ThisWorkbook.Sheets
If Left(sht.Name,3) = "DEC" Then
'do something
End If
Next