hellfire45
Active Member
- Joined
- Jun 7, 2014
- Messages
- 462
I need to check a workbook to make sure that certain worksheets exist and that they're named correctly. I'm been trying something like what is below but they aren't working. Any suggestions? Thank you again so much!
Also tried
Code:
if Worksheets("Tasks") <> "" then
MsgBox ("Tasks Sheet Either Missing or Named Incorrectly")
Workbooks(docname4).Close False
Exit Sub
Also tried
Code:
If Not SheetExists("Tasks") Then
MsgBox ("Tasks Sheet Either Missing or Named Incorrectly")
Workbooks(docname4).Close False
Exit Sub