Function IsExistsSheet(shName As String) As Boolean
Dim sh As Worksheet
Dim ret As Boolean
ret = False
For Each sh In ActiveWorkbook.Sheets
If sh.Name = shName Then
ret = True
Exit For
End If
Next
IsExistsSheet = ret
End Function
Function IsExistsSheet(shName As String) As Boolean
On Error GoTo ErrHandle
ActiveSheet.Name = shName
IsExistsSheet = False
Return
ErrHandle:
IsExistsSheet = True
End Function