The OP said "delete current work sheet if not a specific name", so I think your equal sign (=) should be a not equal sign (<>).Code:Application.DisplayAlerts = False If ActiveSheet.Name = "Sheet1" Then ActiveSheet.Delete Application.DisplayAlerts = True