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 prompts the following error:
run-time error 1004 - "Delete method of Range class failed"
I have used the following code:
Sub test()
Range("Table1[[New]]").Activate
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
End Sub
See Question&Answers more detail:os