Hi All, I'd like the macro to delete all the blank sheets of the workbook, or each sheet in which cell "A1" is empty (whichever way is easier to code). I tried the following code, but it is not working correctly. Any help would be appreciated. Thanks!
[vba]
With ActiveWorkbook
For Each Worksheet In ThisWorkbook.Worksheets
If .Cells(1, "A").Value = "" Then
Application.DisplayAlerts = False
ActiveSheet.Delete
Application.DisplayAlerts = True
End If
Next Worksheet
End With
[/vba]