G
Guest
Hi
Why isnt this code working? It is coming up with the 'Type Mismatch' error.
Thanks
Sub DeleteSheets()
For x = 1 To Worksheets.Count
If Worksheets(x).Name <> "Menu" Or "Sage Export" Then
Worksheets(x).Delete
End If
Next x
End Sub
Why isnt this code working? It is coming up with the 'Type Mismatch' error.
Thanks
Sub DeleteSheets()
For x = 1 To Worksheets.Count
If Worksheets(x).Name <> "Menu" Or "Sage Export" Then
Worksheets(x).Delete
End If
Next x
End Sub