'-------------------------------------------------
'Sheet exist check
'-------------------------------------------------
Function IsExistsSheet(ByVal prmStrSheetName As String) As Boolean
Dim blnFlag As Boolean
Dim ws As Worksheet
blnFlag = False
If prmStrSheetName = vbNullString Then
IsExistsSheet = False
Exit Function
End If
For Each ws In ActiveWorkbook.Sheets
If StrConv(prmStrSheetName, vbUpperCase + vbWide) = StrConv(ws.Name, vbUpperCase + vbWide) Then
blnFlag = True
Exit For
End If
Next
IsExistsSheet = blnFlag
End Function