basically I want to check if a sheet existed, and if not it would goto a different part in the procedure... But currently I get an error, so I am thinking = True is not used right...
But basically I wanted to say, if Sheet ("ALL_test") exists, delete it, if not go to the import procedure..
any ideas ?
If Sheets("ALL_test") = True Then
Sheets("ALL_test").Select ' select the sheet if it exists
ActiveWindow.SelectedSheets.Delete ' and delete the sheet
Else
GoTo StartImport
End If
But basically I wanted to say, if Sheet ("ALL_test") exists, delete it, if not go to the import procedure..
any ideas ?
If Sheets("ALL_test") = True Then
Sheets("ALL_test").Select ' select the sheet if it exists
ActiveWindow.SelectedSheets.Delete ' and delete the sheet
Else
GoTo StartImport
End If