Abaixo listo o sexto método que poderá utilizar para deletar linhas que estiverem selecionadas. Observe o primeiro tópico com comentários adicionais.
Sub DelRwWithSpecifiedData()' Observando a coluna "D"Columns(4).EntireColumn.InsertWith Range("D1:D" & ActiveSheet.UsedRange.Rows.Count).FormulaR1C1 = "=IF(RC[1]="""","""",IF(RC[1]=""Not Needed"",NA()))".Value = .ValueOn Error Resume Next.SpecialCells(xlCellTypeConstants, xlErrors).EntireRow.DeleteEnd WithOn Error GoTo 0Columns(4).EntireColumn.DeleteEnd Sub
Tags: Excel, Column, Coluna, Delete, Linha, Plan, Planilhas, Report, Row, rows,worksheet, lines
André Luiz Bernardes
A&A® - In Any Place.


Nenhum comentário:
Postar um comentário