Hello all!
I am trying to check for a tab to see if it exists. If it does exist I would like to delete it. If it does not, I would like to run the rest of the macro. How can I do this? I already have the sheet name to check for and the delete command, but what would be the if statement to check for it?
thanks,
Mike
I am trying to check for a tab to see if it exists. If it does exist I would like to delete it. If it does not, I would like to run the rest of the macro. How can I do this? I already have the sheet name to check for and the delete command, but what would be the if statement to check for it?
thanks,
Mike
Code:
Sub Macro1()
Sheets("k- demo inv. stock").Select
ActiveWindow.SelectedSheets.Delete
End Sub