+1

могу обновить код, чтобы удалить строку, если ячейка в столбце A пуста, а также удалить строку, если ячейка в столбце A содержит строку «Пол»?

Я предполагаю, что мне нужно обновить:Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete

Application.ScreenUpdating = False
For Each ws In Worksheets 'and here
    Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete

    For Each MyCell In ws.Range("A2:EA2")
        If Not IsInArray(MyCell, arr) Then
            If HideMe Is Nothing Then
                Set HideMe = MyCell
            Else
                Set HideMe = Union(HideMe, MyCell)
            End If
        End If
    Next MyCell

    If Not HideMe Is Nothing Then
        HideMe.EntireColumn.Hidden = True
    End If

    Set HideMe = Nothing 'and here
Next ws 'and here
Application.ScreenUpdating = True    

Ответы на вопрос(2)

Ваш ответ на вопрос