Try this:
Function SundarSheetExists(SheetName As String) As String
Dim flag As Boolean, ws As Worksheet
flag = True
For Each ws In Worksheets
If UCase(ws.Name) = UCase(SheetName) Then
flag = False
Exit For
End If
Next
If flag = True Then
SundarSheetExists = "Sheet is not available"
Else
SundarSheetExists = "Sheet already exists"
End If
End Function
or this:
Function SundarSheetExists1(SheetName As String) As String
If Evaluate("ISREF('" & SheetName & "'!A1)") Then
SundarSheetExists1 = "Sheet already exists"
Else
SundarSheetExists1 = "Sheet is not available"
End If
End Function
Bookmarks