I\'m trying to run a macro that selects blank cells in a table column and deletes the entire row.
The script below does everything except the deleting part, which p
You actually can do it in one pass, but need to use the ListObject object and its DataBodyRange and ListColumns properties:
Sub ClearBlankCellsInColumnNew()
Dim rngBlanks As Excel.Range
With Worksheets("Sheet1").ListObjects("Table1")
On Error Resume Next
Set rngBlanks = Intersect(.DataBodyRange, .ListColumns("New").Range).SpecialCells(xlCellTypeBlanks)
On Error GoTo 0
If Not rngBlanks Is Nothing Then
rngBlanks.Delete
End If
End With
End Sub