Skip to content

Instantly share code, notes, and snippets.

@ndthanh
Created August 1, 2017 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndthanh/2ff82dc01c6ed2379817828ad1632ecb to your computer and use it in GitHub Desktop.
Save ndthanh/2ff82dc01c6ed2379817828ad1632ecb to your computer and use it in GitHub Desktop.
Function CheckIfSheetExists(SheetName As String) As Boolean
CheckIfSheetExists = False
For Each WS In Worksheets
If SheetName = WS.name Then
CheckIfSheetExists = True
Exit Function
End If
Next WS
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment