Last active
May 14, 2020 02:32
-
-
Save imamuddinwp/8c013c8be1f92f7a58a162b7da469c8d to your computer and use it in GitHub Desktop.
Check Sheet Exist or Not In Excel Work Book, thanx :) Imam Uddin; imamcu07
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Check_Sheet_Exist() | |
Dim ws_exist As Worksheet | |
On Error Resume Next | |
Set ws_exist = Sheets("My Sheet") | |
If Err.Number <> 0 Then | |
MsgBox "Please Check Sheet 'My Sheet' exist or not!!! Thanx :)" | |
Else | |
'------------------------All Code Goes Here | |
'--------------------------------- | |
End If | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment