求excel高手:如何一键 把分类汇总为0的(填允黄色的部分) 连明细一起删除?

2025-02-25 05:54:02
推荐回答(1个)
回答1:

For currentRow = LastRow To 2 Step -1
If WorksheetFunction.CountA(Rows(currentRow)) = 0 Then
.Rows(currentRow).EntireRow.Delete
End If
Next