Sub deleteemptysheets()
Dim sh As Worksheet, wb As Workbook, c As Range
sh = Sheets(wb.Sheets)
For Each c In wb.Sheets
If IsEmpty(sh.UsedRange) Then
sh.Delete
End If
Next
Set sh = Nothing
Set wb = Nothing
Set c = Nothing
End Sub
问题:我试图删除空白表,但我无法获得确切的代码。在这种情况下有人可以帮助我吗?谢谢。