📌  相关文章
📜  删除带有空格和空格的行 " " vba 代码示例

📅  最后修改于: 2022-03-11 14:51:56.862000             🧑  作者: Mango

代码示例1
Dim iCounter As Long
With Application
    .Calculation = xlCalculationManual
    .ScreenUpdating = False
    For iCounter = Selection.Rows.Count To 1 Step -1
        If WorksheetFunction.CountA(Selection.Rows(iCounter)) = 0 Then
            Selection.Rows(iCounter).EntireRow.Delete
        End If
    Next iCounter
    .Calculation = xlCalculationAutomatic
    .ScreenUpdating = True
End With