You could use something like:
Function wsExists(ByVal wksName As String, Optional blnPartial As Boolean = False) As Boolean
Dim wks As Worksheet
If blnPartial Then
For Each wks In ActiveWorkbook.Worksheets
If InStr(1, wks.Name, wksName, vbTextCompare) > 0 Then
wsExists = True
Exit Function
End If
Next wks
Else
On Error Resume Next
wsExists = CBool(Len(Worksheets(wksName).Name) > 0)
End If
End Function
called as either:
If wsExists("Comments") Then
for exact match or:
If wsExists("Comments", true) Then
for partial match.
If you want specific combinations of wildcards, then you could use Like instead.
Bookmarks