Skip to content

Instantly share code, notes, and snippets.

@thoriqmacto
Last active August 29, 2015 14:05
Show Gist options
  • Save thoriqmacto/971ec0ae7345b6a2588e to your computer and use it in GitHub Desktop.
Save thoriqmacto/971ec0ae7345b6a2588e to your computer and use it in GitHub Desktop.
Function CheckSheet(pName As String) As Boolean
Dim IsExist As Boolean
IsExist = False
For Each ws In Worksheets
If ws.Name = pName Then
IsExist = True
Exit For
End If
Next
CheckSheet = IsExist
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment