I'm after code that can
Delete all empty worksheets.
I have this, but it doesnt work.
I get method 'delete' of object 'worksheet' failed.
Dim sh As Worksheet
For Each sh In ThisWorkbook.Worksheets
If Application.WorksheetFunction.CountA(sh.Cells) = 0 Then
Application.DisplayAlerts = False
sh.Delete
Application.DisplayAlerts = True
End If
Next
TIA.
Picco