I am trying to delete all the sheets which do not equal specific code names but instead of doing that, my code is deleting the sheets that I want to keep.the coding is below:
For each ws In wb.worksheets
If ws.CodeName <> “Tasks_Complete” And ws.CodeName <> “Issues_Tasks” Then
ws.Delete
End If
Next ws
Instead it deletes the sheets with the code names and keep the sheet that I do not want. Am I missing something from the code?
“is different than the default quote character"