Delete rows with blank cells in a certain column using VBA in Microsoft Excel





Tip sumited by Dave Ramage, UK

A tip to quickly and efficiently delete all rows that contain a blank cell in a certain column.
First select the single column range that you want to check, then execute this line of code:

Selection.SpecialCells(xlCellTypeBlanks).EntireRow.Delete

Screenshot // Delete rows with blank cells in a certain column using VBA in Microsoft Excel
Delete rows with blank cells in a certain column using VBA in Microsoft ExcelDelete rows with blank cells in a certain column using VBA in Microsoft Excel



One thought on “Delete rows with blank cells in a certain column using VBA in Microsoft Excel

  1. “Consider the Following code to batch-delete the unused names in a workbook.

    Dim i As Integer

    For i = 1 To ActiveWorkbook.Names.Count
    ActiveWorkbook.Names(i).Delete
    Next i “

Leave a Reply

Your email address will not be published. Required fields are marked *


four + 9 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>