C
CT
Sometimes when I try to add a new sheet ...
Worksheets.Add.Move after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = "Input"
I fail because there is already a worksheet named "Input".
So, before adding the new sheet, I do ...
For Each MyWorksheet In Worksheets
If MyWorksheet.Name = "Input" Then
Application.DisplayAlerts = False
Worksheets("Input").Delete
Application.DisplayAlerts = True
End If
Next MyWorksheet
Is there a more simple way to check to see if the "Input" sheet exists?
Worksheets.Add.Move after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = "Input"
I fail because there is already a worksheet named "Input".
So, before adding the new sheet, I do ...
For Each MyWorksheet In Worksheets
If MyWorksheet.Name = "Input" Then
Application.DisplayAlerts = False
Worksheets("Input").Delete
Application.DisplayAlerts = True
End If
Next MyWorksheet
Is there a more simple way to check to see if the "Input" sheet exists?