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

Follow by Email
Facebook
Facebook
Google+
http://www.exceltip.com/cells-ranges-rows-and-columns-in-vba/delete-rows-with-blank-cells-in-a-certain-column-using-vba-in-microsoft-excel.html">
SHARE




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

Please follow and like us:
4


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 *


1 − = zero

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>